summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-02-28 07:43:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-02-28 09:06:06 (GMT)
commit386cb77210cdb09cd808698d21d0e796cd77f26f (patch)
tree0a8460ca2365d52c864cec23cb17a2ffb31ba577 /cache.h
parentb8431b033f9e60f87a75b864612873307a3e5966 (diff)
downloadgit-386cb77210cdb09cd808698d21d0e796cd77f26f.zip
git-386cb77210cdb09cd808698d21d0e796cd77f26f.tar.gz
git-386cb77210cdb09cd808698d21d0e796cd77f26f.tar.bz2
Consolidate ignore_packed logic more
This refactors three loops that check if a given packfile is on the ignore_packed list into a function is_kept_pack(). The function returns false for a pack on the list, and true for a pack not on the list, because this list is solely used by "git repack" to pass list of packfiles that do not have corresponding .keep files, i.e. a packfile not on the list is "kept". Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 8e43f38..23c16d0 100644
--- a/cache.h
+++ b/cache.h
@@ -747,7 +747,6 @@ 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);