diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-20 09:09:18 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-20 09:09:18 -0700 |
commit | 958ba6c96eb58b359c855c9d07e3e45072f0503e (patch) | |
tree | 0d9f3f853998315a6d6abd045b5de32b074066c8 /cache.h | |
parent | e59363822f7026896209a9e986c6bf80b10ab37a (diff) | |
download | git-958ba6c96eb58b359c855c9d07e3e45072f0503e.tar.gz git-958ba6c96eb58b359c855c9d07e3e45072f0503e.tar.xz |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, |