]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: create store via its owning source
authorPatrick Steinhardt <ps@pks.im>
Fri, 9 Jan 2026 08:33:09 +0000 (09:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Jan 2026 14:40:06 +0000 (06:40 -0800)
commit480336a9cec8701103a815289304ea626416043a
tree3423c37d4c4fa6096a95b30c66c4906724e1213b
parentf1ec43d4d24d1db78a19966fe4ce2f7b36c08c49
packfile: create store via its owning source

In subsequent patches we're about to move the packfile store from the
object database layer into the object database source layer. Once done,
we'll have one packfile store per source, where the source is owning the
store.

Prepare for this future and refactor `packfile_store_new()` to be
initialized via an object database source instead of via the object
database itself.

This refactoring leads to a weird in-between state where the store is
owned by the object database but created via the source. But this makes
subsequent refactorings easier because we can now start to access the
owning source of a given store.

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