Add git__dirname and git__basename utility routines
commitced645ea9ca4170bd75c17cb9c2c8f19f935491d
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Mon, 12 Jan 2009 19:42:13 +0000 (12 19:42 +0000)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 28 Jan 2009 20:25:24 +0000 (28 12:25 -0800)
treef2e2e7e17751b629cc3c13b0a7d0cab059cd1df4
parent66a4bfac99c07b79d75c015aed8f5972f0a4a336
Add git__dirname and git__basename utility routines

These routines are intended to extract the directory and
base name from a path string. Note that these routines
do not interact with any filesystem and work only on the
text of the path.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
src/util.c
src/util.h
tests/t0003-strutil.c