aboutsummaryrefslogtreecommitdiffstats
path: root/midx.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-07-29 11:34:08 -0700
committerJunio C Hamano <gitster@pobox.com>2025-07-29 11:34:08 -0700
commit70b7b03f986f5aa43d56e7bbf1fee149d790d06f (patch)
treec7d309179296d69a49d4e972898b0e1c2ff0793d /midx.h
parentThe fifteenth batch (diff)
parentmidx: remove now-unused linked list of multi-pack indices (diff)
downloadgit-70b7b03f986f5aa43d56e7bbf1fee149d790d06f.tar.gz
git-70b7b03f986f5aa43d56e7bbf1fee149d790d06f.zip
Merge branch 'ps/object-store-midx' into ps/object-store-midx-dedup-info
* ps/object-store-midx: midx: remove now-unused linked list of multi-pack indices packfile: stop using linked MIDX list in `get_all_packs()` packfile: stop using linked MIDX list in `find_pack_entry()` packfile: refactor `get_multi_pack_index()` to work on sources midx: stop using linked list when closing MIDX packfile: refactor `prepare_packed_git_one()` to work on sources midx: start tracking per object database source
Diffstat (limited to 'midx.h')
-rw-r--r--midx.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/midx.h b/midx.h
index 9d1374cbd5..076382de8a 100644
--- a/midx.h
+++ b/midx.h
@@ -8,6 +8,7 @@ struct pack_entry;
struct repository;
struct bitmapped_pack;
struct git_hash_algo;
+struct odb_source;
#define MIDX_SIGNATURE 0x4d494458 /* "MIDX" */
#define MIDX_VERSION 1
@@ -34,8 +35,6 @@ struct git_hash_algo;
"GIT_TEST_MULTI_PACK_INDEX_WRITE_INCREMENTAL"
struct multi_pack_index {
- struct multi_pack_index *next;
-
const unsigned char *data;
size_t data_len;
@@ -123,7 +122,7 @@ int fill_midx_entry(struct repository *r, const struct object_id *oid, struct pa
int midx_contains_pack(struct multi_pack_index *m,
const char *idx_or_pack_name);
int midx_preferred_pack(struct multi_pack_index *m, uint32_t *pack_int_id);
-int prepare_multi_pack_index_one(struct repository *r, const char *object_dir, int local);
+int prepare_multi_pack_index_one(struct odb_source *source, int local);
/*
* Variant of write_midx_file which writes a MIDX containing only the packs