diff options
author | René Scharfe <l.s.r@web.de> | 2021-09-11 22:42:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-13 01:14:32 +0200 |
commit | 7407d733a4a99cf946cab0c82e03c41dbd305b7c (patch) | |
tree | 008677608381161178adba306f3814373a3809b2 /packfile.h | |
parent | packfile: convert mark_bad_packed_object() to object_id (diff) | |
download | git-7407d733a4a99cf946cab0c82e03c41dbd305b7c.tar.xz git-7407d733a4a99cf946cab0c82e03c41dbd305b7c.zip |
packfile: convert has_packed_and_bad() to object_id
The single caller has a full object ID, so pass it on instead of just
its hash member.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'packfile.h')
-rw-r--r-- | packfile.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packfile.h b/packfile.h index a982ed9994..186146779d 100644 --- a/packfile.h +++ b/packfile.h @@ -160,7 +160,7 @@ int packed_object_info(struct repository *r, off_t offset, struct object_info *); void mark_bad_packed_object(struct packed_git *, const struct object_id *); -const struct packed_git *has_packed_and_bad(struct repository *r, const unsigned char *sha1); +const struct packed_git *has_packed_and_bad(struct repository *, const struct object_id *); #define ON_DISK_KEEP_PACKS 1 #define IN_CORE_KEEP_PACKS 2 |