aboutsummaryrefslogtreecommitdiff
path: root/odb.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-01-21 08:28:58 -0800
committerJunio C Hamano <gitster@pobox.com>2026-01-21 08:28:59 -0800
commitd627023d80667b8975fee0a8876ac42df20bf7d2 (patch)
treee8319ad944900014c1ffa755782bf8ea9a5b295b /odb.h
parentab72d238803f55d2d8c5290af56d61a31b16bef2 (diff)
parenta282a8f163fa70f9eacc880e6188141cef917058 (diff)
downloadgit-d627023d80667b8975fee0a8876ac42df20bf7d2.tar.xz
Merge branch 'ps/packfile-store-in-odb-source'
The packfile_store data structure is moved from object store to odb source. * ps/packfile-store-in-odb-source: packfile: move MIDX into packfile store packfile: refactor `find_pack_entry()` to work on the packfile store packfile: inline `find_kept_pack_entry()` packfile: only prepare owning store in `packfile_store_prepare()` packfile: only prepare owning store in `packfile_store_get_packs()` packfile: move packfile store into object source packfile: refactor misleading code when unusing pack windows packfile: refactor kept-pack cache to work with packfile stores packfile: pass source to `prepare_pack()` packfile: create store via its owning source
Diffstat (limited to 'odb.h')
-rw-r--r--odb.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/odb.h b/odb.h
index 014cd9585a..300c3c0c46 100644
--- a/odb.h
+++ b/odb.h
@@ -51,12 +51,8 @@ struct odb_source {
/* Private state for loose objects. */
struct odb_source_loose *loose;
- /*
- * private data
- *
- * should only be accessed directly by packfile.c and midx.c
- */
- struct multi_pack_index *midx;
+ /* Should only be accessed directly by packfile.c and midx.c. */
+ struct packfile_store *packfiles;
/*
* Figure out whether this is the local source of the owning
@@ -128,9 +124,6 @@ struct object_database {
struct commit_graph *commit_graph;
unsigned commit_graph_attempted : 1; /* if loading has been attempted */
- /* Should only be accessed directly by packfile.c and midx.c. */
- struct packfile_store *packfiles;
-
/*
* This is meant to hold a *small* number of objects that you would
* want odb_read_object() to be able to return, but yet you do not want