summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2009-02-07 16:08:28 +0100
committerJunio C Hamano <gitster@pobox.com>2009-02-07 12:23:29 -0800
commitf3cad0ad82e24966bf7bcc8a47670c54c30e4b18 (patch)
treeff693db24ecc744628efa77a2c32442df7460dfb /cache.h
parent2cd85c40a9f396bb24f7861c832acd52e61c4780 (diff)
downloadgit-f3cad0ad82e24966bf7bcc8a47670c54c30e4b18.tar.gz
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>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 42f2f2754b..65897e7b2c 100644
--- a/cache.h
+++ b/cache.h
@@ -548,6 +548,7 @@ const char *make_absolute_path(const char *path);
const char *make_nonrelative_path(const char *path);
const char *make_relative_path(const char *abs, const char *base);
int normalize_absolute_path(char *buf, const char *path);
+int normalize_path_copy(char *dst, const char *src);
int longest_ancestor_length(const char *path, const char *prefix_list);
/* Read and unpack a sha1 file into memory, write memory to a sha1 file */