diff options
author | Derrick Stolee <stolee@gmail.com> | 2018-07-12 22:39:36 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-20 21:27:28 +0300 |
commit | a40498a12654259335995d785cc1da9f90f249c7 (patch) | |
tree | 5829eb0ef0a9d981916117b8925c9fe99628727a /midx.h | |
parent | 8aac67a174061a0744557a3984a433f926bf5cb3 (diff) |
midx: use existing midx when writing new one
Due to how Windows handles replacing a lockfile when there is an open
handle, create the close_midx() method to close the existing midx before
writing the new one.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'midx.h')
-rw-r--r-- | midx.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -35,6 +35,7 @@ struct object_id *nth_midxed_object_oid(struct object_id *oid, struct multi_pack_index *m, uint32_t n); int fill_midx_entry(const struct object_id *oid, struct pack_entry *e, struct multi_pack_index *m); +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 write_midx_file(const char *object_dir); |