midx: use existing midx when writing new one
authorDerrick Stolee <stolee@gmail.com>
Thu, 12 Jul 2018 19:39:36 +0000 (15:39 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jul 2018 18:27:28 +0000 (11:27 -0700)
commita40498a12654259335995d785cc1da9f90f249c7
tree5829eb0ef0a9d981916117b8925c9fe99628727a
parent8aac67a174061a0744557a3984a433f926bf5cb3
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>
midx.c
midx.h