Merge branch 'jh/close-index-before-stat'
commit70f8ba55242ca7ebf46b43d8b29d09c552acce1f
authorJunio C Hamano <gitster@pobox.com>
Mon, 5 Jun 2017 00:18:10 +0000 (5 09:18 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Jun 2017 00:18:10 +0000 (5 09:18 +0900)
treeb50134d35754534a034898710aaa13b51963cf19
parentf4ba3cf615dba8b085795400c2e306782d812b32
parent9f41c7a6b3e3cc3ac4a739364400393fa2492880
Merge branch 'jh/close-index-before-stat'

The timestamp of the index file is now taken after the file is
closed, to help Windows, on which a stale timestamp is reported by
fstat() on a file that is opened for writing and data was written
but not yet closed.

* jh/close-index-before-stat:
  read-cache: close index.lock in do_write_index
read-cache.c