read-cache: touch shared index files when used
authorChristian Couder <christian.couder@gmail.com>
Mon, 27 Feb 2017 18:00:12 +0000 (19:00 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Mar 2017 21:34:51 +0000 (13:34 -0800)
commit0d59ffb47ed58f519bfa2796d38364496735ab19
tree38fecadf6a8c5faa32e04caaeea845299fa214a8
parent6a5e6f5e4496d5647e9b11352d055efed434029e
read-cache: touch shared index files when used

When a split-index file is created, let's update the mtime of the
shared index file that the split-index file is referencing.

In a following commit we will make shared index file expire
depending on their mtime, so updating the mtime makes sure that
the shared index file will not be deleted soon.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c