]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: only prepare owning store in `packfile_store_get_packs()`
authorPatrick Steinhardt <ps@pks.im>
Thu, 18 Dec 2025 06:55:25 +0000 (07:55 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Jan 2026 00:37:43 +0000 (09:37 +0900)
commit156bc34f9b5d4eaec7ec42ee9d836f180010ee55
tree9ab47ed80d95fbd7eee3c064f4aff9c8a7005b1e
parenta6614da81fe2866cb1b817c5c0e6a56a6f371020
packfile: only prepare owning store in `packfile_store_get_packs()`

When calling `packfile_store_get_packs()` we prepare not only the
provided packfile store, but also all those of all other sources part of
the same object database. This was required when the store was still
sitting on the object database level. But now that it sits on the source
level it's not anymore.

Adapt the code so that we only prepare the MIDX of the provided store.
All callers only work in the context of a single store or call the
function in a loop over all sources, so this change shouldn't have any
practical effects.

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