Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/midx.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-11-13 16:37:19 +0300
committerJunio C Hamano <gitster@pobox.com>2018-11-13 16:37:19 +0300
commit5fb9263295b425c7acfde66c8abe5d53fa55d2c3 (patch)
tree8e62ddfccfdc49a24407fcf1eafc67e5548fdfd8 /midx.h
parent25e4da89edc5339019f0d7c29a21ef4e08cccf24 (diff)
parentdc7d66433536b5acca653c3c5ecf9c2d91462eba (diff)
Merge branch 'ds/test-multi-pack-index'
Tests for the recently introduced multi-pack index machinery. * ds/test-multi-pack-index: packfile: close multi-pack-index in close_all_packs multi-pack-index: define GIT_TEST_MULTI_PACK_INDEX midx: close multi-pack-index on repack midx: fix broken free() in close_midx()
Diffstat (limited to 'midx.h')
-rw-r--r--midx.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/midx.h b/midx.h
index 1d6c21afe3..774f652530 100644
--- a/midx.h
+++ b/midx.h
@@ -6,6 +6,8 @@
struct object_id;
struct pack_entry;
+#define GIT_TEST_MULTI_PACK_INDEX "GIT_TEST_MULTI_PACK_INDEX"
+
struct multi_pack_index {
struct multi_pack_index *next;
@@ -45,7 +47,9 @@ int midx_contains_pack(struct multi_pack_index *m, const char *idx_name);
int prepare_multi_pack_index_one(struct repository *r, const char *object_dir, int local);
int write_midx_file(const char *object_dir);
-void clear_midx_file(const char *object_dir);
+void clear_midx_file(struct repository *r);
int verify_midx_file(const char *object_dir);
+void close_midx(struct multi_pack_index *m);
+
#endif