]> git.ipfire.org Git - thirdparty/git.git/commit
midx: clear auxiliary .rev after replacing the MIDX
authorTaylor Blau <me@ttaylorr.com>
Tue, 31 Aug 2021 20:51:59 +0000 (16:51 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Sep 2021 17:58:43 +0000 (10:58 -0700)
commitf5909d34ca4956744bc6e058d30546a5ab28ee8b
tree470dce334e8190acafd7050677e3ce5023e6dacf
parent426c00e4541367bcd96e542f971d8995e3bb1d54
midx: clear auxiliary .rev after replacing the MIDX

When writing a new multi-pack index, write_midx_internal() attempts to
clean up any auxiliary files (currently just the MIDX's `.rev` file, but
soon to include a `.bitmap`, too) corresponding to the MIDX it's
replacing.

This step should happen after the new MIDX is written into place, since
doing so beforehand means that the old MIDX could be read without its
corresponding .rev file.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx.c