]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: only prepare owning store in `packfile_store_prepare()`
authorPatrick Steinhardt <ps@pks.im>
Fri, 9 Jan 2026 08:33:15 +0000 (09:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Jan 2026 14:40:07 +0000 (06:40 -0800)
commit8384cbcb4c737c6d1c6becb40e439c398e3624b4
tree3b29342da2eb928888d027b90e6a3e904fe73b22
parent7b330a11de903f11a73084d41dd00bbef71cd622
packfile: only prepare owning store in `packfile_store_prepare()`

When calling `packfile_store_prepare()` 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.

Refactor the code so that we only prepare the single packfile store
passed by the caller. Adapt callers accordingly.

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