aboutsummaryrefslogtreecommitdiff
path: root/packfile.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-01-12 10:00:47 +0100
committerJunio C Hamano <gitster@pobox.com>2026-01-12 06:51:15 -0800
commit12d3b58b5552750f351ded7166b347446d9543f3 (patch)
treecbcffeb286f3572d590e5152ab633594aa88b021 /packfile.h
parent5ff29698e077e712740691a1d15e8320115ebdbf (diff)
downloadgit-12d3b58b5552750f351ded7166b347446d9543f3.tar.xz
packfile: drop repository parameter from `packed_object_info()`
The function `packed_object_info()` takes a packfile and offset and returns the object info for the corresponding object. Despite these two parameters though it also takes a repository pointer. This is redundant information though, as `struct packed_git` already has a repository pointer that is always populated. Drop the redundant parameter. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'packfile.h')
-rw-r--r--packfile.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/packfile.h b/packfile.h
index d7cce582af..33fed26362 100644
--- a/packfile.h
+++ b/packfile.h
@@ -382,8 +382,7 @@ extern int do_check_packed_object_crc;
* Look up the object info for a specific offset in the packfile.
* Returns zero on success, a negative error code otherwise.
*/
-int packed_object_info(struct repository *r,
- struct packed_git *pack,
+int packed_object_info(struct packed_git *pack,
off_t offset, struct object_info *);
void mark_bad_packed_object(struct packed_git *, const struct object_id *);