summaryrefslogtreecommitdiff
path: root/packfile.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-10-16 23:35:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-19 07:21:10 (GMT)
commit33b94066f27199071abaa4067d29a98bbbbdae11 (patch)
treec884dec2172508445bc0f23abf6a9e655384ffee /packfile.h
parent1b9b5c695e34051c80c9240fdb22e7c89ff0fd5f (diff)
downloadgit-33b94066f27199071abaa4067d29a98bbbbdae11.zip
git-33b94066f27199071abaa4067d29a98bbbbdae11.tar.gz
git-33b94066f27199071abaa4067d29a98bbbbdae11.tar.bz2
packfile: allow has_packed_and_bad to handle arbitrary repositories
has_packed_and_bad is not widely used, so just migrate it all at once. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'packfile.h')
-rw-r--r--packfile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/packfile.h b/packfile.h
index 4426257..7a62d72 100644
--- a/packfile.h
+++ b/packfile.h
@@ -146,7 +146,7 @@ extern int packed_object_info(struct repository *r,
off_t offset, struct object_info *);
extern void mark_bad_packed_object(struct packed_git *p, const unsigned char *sha1);
-extern const struct packed_git *has_packed_and_bad(const unsigned char *sha1);
+extern const struct packed_git *has_packed_and_bad(struct repository *r, const unsigned char *sha1);
/*
* Iff a pack file in the given repository contains the object named by sha1,