summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 83adac3)
raw | patch | inline | side by side (parent: 83adac3)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sat, 9 Apr 2005 19:59:11 +0000 (12:59 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sat, 9 Apr 2005 19:59:11 +0000 (12:59 -0700) |
The "diff-tree" program needs it.
cache.h | patch | blob | history | |
read-cache.c | patch | blob | history |
index 2581117a185fe5cdce38612d82a737ef0636d433..8d163c0625991ded9789ed3e54d2e43e69cd9dfc 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -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 58487b569cf79a11e262ca7f809aa6b277dbd1ee..ac8375a7f0e89dca5a2af30fce52f3b766dd153c 100644 (file)
--- a/read-cache.c
+++ b/read-cache.c
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;