Add is_absolute_path() and make_absolute_path()
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Wed, 1 Aug 2007 00:28:59 +0000 (01:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Aug 2007 07:38:30 +0000 (00:38 -0700)
commite5392c51469c25851f9c6e53165d75fc61901768
tree9fc9e6a7b22c40694e5bb6994c599da1a159d96e
parent73a7a65663223d08d8cabac8d873de21b7e9678d
Add is_absolute_path() and make_absolute_path()

This patch adds convenience functions to work with absolute paths.
The function is_absolute_path() should help the efforts to integrate
the MinGW fork.

Note that make_absolute_path() returns a pointer to a static buffer.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
cache.h
path.c
t/t0000-basic.sh
test-absolute-path.c [new file with mode: 0644]