]> git.ipfire.org Git - thirdparty/git.git/commit
odb: move list of packfiles into `struct packfile_store`
authorPatrick Steinhardt <ps@pks.im>
Tue, 23 Sep 2025 10:17:01 +0000 (12:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Sep 2025 18:53:48 +0000 (11:53 -0700)
commit535b7a667a94d5882add829e30e20b6dfa076640
tree040facee4b2e891804f391b0f33b42bcfb1e384d
parentb7983adb5180c62586753754ae22a24ce8f7a04c
odb: move list of packfiles into `struct packfile_store`

The object database tracks the list of packfiles it currently knows
about. With the introduction of the `struct packfile_store` we have a
better place to host this list though.

Move the list accordingly. Extract the logic from `odb_clear()` that
knows to close all such packfiles and move it into the new subsystem, as
well.

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