aboutsummaryrefslogtreecommitdiff
path: root/odb.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-09-23 12:17:04 +0200
committerJunio C Hamano <gitster@pobox.com>2025-09-24 11:53:49 -0700
commitfe835b0ca0ba4d6968cd2d1f824c178547934792 (patch)
treec56342bd6b6a814c36619b481c3cbef1d7829977 /odb.h
parent14aaf5c9d889a4988ffc64b39fe38bd19b930a50 (diff)
downloadgit-fe835b0ca0ba4d6968cd2d1f824c178547934792.tar.xz
odb: move MRU list of packfiles into `struct packfile_store`
The object database tracks the list of packfiles in most-recently-used order, which is mostly used to favor reading from packfiles that contain most of the objects that we're currently accessing. With the introduction of the `struct packfile_store` we have a better place to host this list though. Move the list accordingly. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'odb.h')
-rw-r--r--odb.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/odb.h b/odb.h
index b79e7280c1..3044b6a661 100644
--- a/odb.h
+++ b/odb.h
@@ -3,7 +3,6 @@
#include "hashmap.h"
#include "object.h"
-#include "list.h"
#include "oidset.h"
#include "oidmap.h"
#include "string-list.h"
@@ -138,9 +137,6 @@ struct object_database {
* Should only be accessed directly by packfile.c and midx.c.
*/
struct packfile_store *packfiles;
- /* A most-recently-used ordered version of the packed_git list. */
- struct list_head packed_git_mru;
-
struct {
struct packed_git **packs;
unsigned flags;