aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-09-16 23:15:19 -0700
committerJunio C Hamano <gitster@pobox.com>2007-09-17 12:25:26 -0700
commit000dfd3f6e3f61e15ccfd4cecb3a51624adfbf38 (patch)
treee10a41b5c23d95603755aa0e968e98292d3eb1da /cache.h
parentd4bb43ee273528064192848165f93f8fc3512be1 (diff)
downloadgit-000dfd3f6e3f61e15ccfd4cecb3a51624adfbf38.tar.gz
git-000dfd3f6e3f61e15ccfd4cecb3a51624adfbf38.tar.xz
Export matches_pack_name() and fix its return value
The function sounds boolean; make it behave as one, not "0 for success, non-zero for failure". Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 70abbd59b..3fa5b8e6a 100644
--- a/cache.h
+++ b/cache.h
@@ -529,6 +529,7 @@ extern void *unpack_entry(struct packed_git *, off_t, enum object_type *, unsign
extern unsigned long unpack_object_header_gently(const unsigned char *buf, unsigned long len, enum object_type *type, unsigned long *sizep);
extern unsigned long get_size_from_delta(struct packed_git *, struct pack_window **, off_t);
extern const char *packed_object_info_detail(struct packed_git *, off_t, unsigned long *, unsigned long *, unsigned int *, unsigned char *);
+extern int matches_pack_name(struct packed_git *p, const char *name);
/* Dumb servers support */
extern int update_server_info(int);