summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-02-28 07:15:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-02-28 09:06:06 (GMT)
commitcd673c1f17228d272c4b7f81fbb28bc31cf0cac6 (patch)
tree5e5537843e6b38f62a3b4f15437e4a3bf8ee89ab /cache.h
parent2478dc84b5fb2617bfab3a8f65f1270de578b94a (diff)
downloadgit-cd673c1f17228d272c4b7f81fbb28bc31cf0cac6.zip
git-cd673c1f17228d272c4b7f81fbb28bc31cf0cac6.tar.gz
git-cd673c1f17228d272c4b7f81fbb28bc31cf0cac6.tar.bz2
has_sha1_pack(): refactor "pretend these packs do not exist" interface
Most of the callers of this function except only one pass NULL to its last parameter, ignore_packed. Introduce has_sha1_kept_pack() function that has the function signature and the semantics of this function, and convert the sole caller that does not pass NULL to call this new function. All other callers and has_sha1_pack() lose the ignore_packed parameter. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 42f2f27..c1539bf 100644
--- a/cache.h
+++ b/cache.h
@@ -565,7 +565,8 @@ extern int check_sha1_signature(const unsigned char *sha1, void *buf, unsigned l
extern int move_temp_to_file(const char *tmpfile, const char *filename);
-extern int has_sha1_pack(const unsigned char *sha1, const char **ignore);
+extern int has_sha1_pack(const unsigned char *sha1);
+extern int has_sha1_kept_pack(const unsigned char *sha1, const char **ignore);
extern int has_sha1_file(const unsigned char *sha1);
extern int has_loose_object_nonlocal(const unsigned char *sha1);