]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: drop repository parameter from `packed_object_info()`
authorPatrick Steinhardt <ps@pks.im>
Thu, 18 Dec 2025 10:54:19 +0000 (11:54 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Dec 2025 11:55:18 +0000 (20:55 +0900)
commit27740c0bdcf28e5e3a8bc3620cefbdaeee0b9c0f
treeb6a68f933d524cb9bb6efeff49c7f45beb9cc368
parent150c2af4b466c222e33bea9c0d9c8732969264a1
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>
builtin/cat-file.c
builtin/pack-objects.c
commit-graph.c
pack-bitmap.c
packfile.c
packfile.h