]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: always populate pack-specific info when reading object info
authorPatrick Steinhardt <ps@pks.im>
Mon, 12 Jan 2026 09:00:44 +0000 (10:00 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jan 2026 14:51:14 +0000 (06:51 -0800)
commit57c168dc3824f1aaad553f90f55fdc86b75de561
tree1bc37c6d6e99aca5ce22a1feeb21207b9b61f95d
parent27d9486cbc37a44565e4a97a84089c85741d4cd8
packfile: always populate pack-specific info when reading object info

When reading object information via `packed_object_info()` we may not
populate the object info's packfile-specific fields. This leads to
inconsistent object info depending on whether the info was populated via
`packfile_store_read_object_info()` or `packed_object_info()`.

Fix this inconsistency so that we can always assume the pack info to be
populated when reading object info from a pack.

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