]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: introduce function to read object info from a store
authorPatrick Steinhardt <ps@pks.im>
Sun, 23 Nov 2025 18:59:36 +0000 (19:59 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 23 Nov 2025 20:56:45 +0000 (12:56 -0800)
commit385e18810f10ec0ce0a266d25da4e1878c8ce15a
tree6d817f18b5c22197e883df29998ded0f8cfe3db9
parenteb5abbb4e6a8c06f5c6275bbb541bf7d736171c5
packfile: introduce function to read object info from a store

Extract the logic to read object info for a packed object from
`do_oid_object_into_extended()` into a standalone function that operates
on the packfile store. This function will be used in a subsequent
commit.

Note that this change allows us to make `find_pack_entry()` an internal
implementation detail. As a consequence though we have to move around
`packfile_store_freshen_object()` so that it is defined after that
function.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
odb.c
packfile.c
packfile.h