read-cache: use freshen_shared_index() in read_index_from()
authorChristian Couder <redacted>
Mon, 6 Mar 2017 09:42:01 +0000 (10:42 +0100)
committerJunio C Hamano <redacted>
Mon, 6 Mar 2017 20:09:28 +0000 (12:09 -0800)
commitc3a008250272295271584c6303463ffb9b055cbc
tree400ad7fcb74a7cac0d411ffff745fbe3bf7d38cd
parentde6ae5f9e3e0960e2adcba4688ed4293edc8424a
read-cache: use freshen_shared_index() in read_index_from()

This way a share index file will not be garbage collected if
we still read from an index it is based from.

As we need to read the current index before creating a new
one, the tests have to be adjusted, so that we don't expect
an old shared index file to be deleted right away when we
create a new one.

Signed-off-by: Christian Couder <redacted>
Signed-off-by: Junio C Hamano <redacted>
read-cache.c
t/t1700-split-index.sh
git clone https://git.99rst.org/PROJECT