]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: create store via its owning source
authorPatrick Steinhardt <ps@pks.im>
Thu, 18 Dec 2025 06:55:20 +0000 (07:55 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Jan 2026 00:37:43 +0000 (09:37 +0900)
commit34c19c7a2b2e2575d5ec6248cfb60d0298900c38
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