Code

Move sanitary_path_copy() to path.c and rename it to normalize_path_copy()
authorJohannes Sixt <j6t@kdbg.org>
Sat, 7 Feb 2009 15:08:28 +0000 (16:08 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 7 Feb 2009 20:23:29 +0000 (12:23 -0800)
commitf3cad0ad82e24966bf7bcc8a47670c54c30e4b18
treeff693db24ecc744628efa77a2c32442df7460dfb
parent2cd85c40a9f396bb24f7861c832acd52e61c4780
Move sanitary_path_copy() to path.c and rename it to normalize_path_copy()

This function and normalize_absolute_path() do almost the same thing. The
former already works on Windows, but the latter crashes.

In subsequent changes we will remove normalize_absolute_path(). Here we
make the replacement function reusable. On the way we rename it to reflect
that it does some path normalization. Apart from that this is only moving
around code.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
path.c
setup.c