diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-01-21 08:28:58 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-21 08:28:59 -0800 |
| commit | d627023d80667b8975fee0a8876ac42df20bf7d2 (patch) | |
| tree | e8319ad944900014c1ffa755782bf8ea9a5b295b /odb.h | |
| parent | ab72d238803f55d2d8c5290af56d61a31b16bef2 (diff) | |
| parent | a282a8f163fa70f9eacc880e6188141cef917058 (diff) | |
| download | git-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.h | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -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 |
