diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-09 12:59:11 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-09 12:59:11 -0700 |
commit | 79517a067a293ddf19867e363f0d9237c7ef8e22 (patch) | |
tree | 989bf717d47f36c9ba4c17a5e3ce1495c34ebf43 | |
parent | Make "read-tree" read the tree into the current directory cache. (diff) | |
download | tgif-79517a067a293ddf19867e363f0d9237c7ef8e22.tar.xz |
Export "cache_name_compare()" helper function.
The "diff-tree" program needs it.
-rw-r--r-- | cache.h | 1 | ||||
-rw-r--r-- | read-cache.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -105,5 +105,6 @@ extern char *sha1_to_hex(const unsigned char *sha1); /* static buffer result! */ /* General helper functions */ extern void usage(const char *err); +extern int cache_name_compare(const char *name1, int len1, const char *name2, int len2); #endif /* CACHE_H */ diff --git a/read-cache.c b/read-cache.c index 58487b569c..ac8375a7f0 100644 --- a/read-cache.c +++ b/read-cache.c @@ -245,7 +245,7 @@ int cache_match_stat(struct cache_entry *ce, struct stat *st) return changed; } -static int cache_name_compare(const char *name1, int len1, const char *name2, int len2) +int cache_name_compare(const char *name1, int len1, const char *name2, int len2) { int len = len1 < len2 ? len1 : len2; int cmp; |