]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: drop repository parameter from `packed_object_info()`
authorPatrick Steinhardt <ps@pks.im>
Mon, 12 Jan 2026 09:00:47 +0000 (10:00 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jan 2026 14:51:15 +0000 (06:51 -0800)
commit12d3b58b5552750f351ded7166b347446d9543f3
treecbcffeb286f3572d590e5152ab633594aa88b021
parent5ff29698e077e712740691a1d15e8320115ebdbf
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