]> git.ipfire.org Git - thirdparty/git.git/commit - path.c
Implement normalize_absolute_path
authorDavid Reiss <dreiss@facebook.com>
Tue, 20 May 2008 06:48:54 +0000 (23:48 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 May 2008 21:11:20 +0000 (14:11 -0700)
commitae299be0e5e610027e6492d48d70c1cbb0e9edd8
tree247e12f709c96df4eea12e5759c689a630b02143
parent377d9c409ffe0f0d994b929aeb94716139207b9d
Implement normalize_absolute_path

normalize_absolute_path removes several oddities form absolute paths,
giving nice clean paths like "/dir/sub1/sub2".  Also add a test case
for this utility, based on a new test program (in the style of test-sha1).

Signed-off-by: David Reiss <dreiss@facebook.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitignore
Makefile
cache.h
path.c
t/t0060-path-utils.sh [new file with mode: 0755]
test-path-utils.c [new file with mode: 0644]