aboutsummaryrefslogtreecommitdiffstats
path: root/cache.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-20 09:09:18 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-20 09:09:18 -0700
commit958ba6c96eb58b359c855c9d07e3e45072f0503e (patch)
tree0d9f3f853998315a6d6abd045b5de32b074066c8 /cache.h
parente59363822f7026896209a9e986c6bf80b10ab37a (diff)
downloadgit-958ba6c96eb58b359c855c9d07e3e45072f0503e.tar.gz
Introduce "base_name_compare()" helper function
This one compares two pathnames that may be partial basenames, not full paths. We need to get the path sorting right, since a directory name will sort as if it had the final '/' at the end.
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 2cfaa1959d..28e3dbddca 100644
--- a/cache.h
+++ b/cache.h
@@ -173,6 +173,7 @@ extern void usage(const char *err);
extern void die(const char *err, ...);
extern int error(const char *err, ...);
+extern int base_name_compare(const char *name1, int len1, int mode1, const char *name2, int len2, int mode2);
extern int cache_name_compare(const char *name1, int len1, const char *name2, int len2);
extern void *read_object_with_reference(const unsigned char *sha1,