aboutsummaryrefslogtreecommitdiffstats
path: root/odb.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-09-23 12:17:05 +0200
committerJunio C Hamano <gitster@pobox.com>2025-09-24 11:53:49 -0700
commitbd1a521de869dc9b26ca88efc5eae022222918c1 (patch)
tree1f3ce7d78def49262380446a7e115a6cd184f520 /odb.h
parentfe835b0ca0ba4d6968cd2d1f824c178547934792 (diff)
downloadgit-bd1a521de869dc9b26ca88efc5eae022222918c1.tar.gz
odb: move kept cache into `struct packfile_store`
The object database tracks a cache of "kept" packfiles, which is used by git-pack-objects(1) to handle cruft objects. With the introduction of the `struct packfile_store` we have a better place to host this cache though. Move the cache accordingly. This moves the last bit of packfile-related state from the object database into the packfile store. Adapt the comment for the `packfiles` pointer in `struct object_database` to reflect this. 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.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/odb.h b/odb.h
index 3044b6a661..9dd7bb6bc3 100644
--- a/odb.h
+++ b/odb.h
@@ -131,16 +131,8 @@ struct object_database {
struct commit_graph *commit_graph;
unsigned commit_graph_attempted : 1; /* if loading has been attempted */
- /*
- * private data
- *
- * Should only be accessed directly by packfile.c and midx.c.
- */
+ /* Should only be accessed directly by packfile.c and midx.c. */
struct packfile_store *packfiles;
- struct {
- struct packed_git **packs;
- unsigned flags;
- } kept_pack_cache;
/*
* This is meant to hold a *small* number of objects that you would