From 958ba6c96eb58b359c855c9d07e3e45072f0503e Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 20 May 2005 09:09:18 -0700 Subject: 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. --- cache.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cache.h') diff --git a/cache.h b/cache.h index 2cfaa1959..28e3dbddc 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, -- cgit v1.2.1