From 33b94066f27199071abaa4067d29a98bbbbdae11 Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Tue, 16 Oct 2018 16:35:33 -0700 Subject: 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 Signed-off-by: Junio C Hamano --- packfile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packfile.h') diff --git a/packfile.h b/packfile.h index 442625723d..7a62d72231 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, -- cgit v1.2.3