Re: [PATCH] read-cache: close index.lock in do_write_index

2017-04-27 Thread Jeff Hostetler
On 4/26/2017 11:13 PM, Jeff King wrote: On Wed, Apr 26, 2017 at 10:05:23PM +0200, Johannes Schindelin wrote: From: Jeff Hostetler Teach do_write_index() to close the index.lock file before getting the mtime and updating the istate.timestamp fields. On Windows, a file's mtime is not updated

Re: [PATCH] read-cache: close index.lock in do_write_index

2017-04-27 Thread Jeff Hostetler
On 4/26/2017 11:21 PM, Junio C Hamano wrote: Johannes Schindelin writes: From: Jeff Hostetler Teach do_write_index() to close the index.lock file before getting the mtime and updating the istate.timestamp fields. On Windows, a file's mtime is not updated until the file is closed. On Linu

Re: [PATCH] read-cache: close index.lock in do_write_index

2017-04-26 Thread Junio C Hamano
Johannes Schindelin writes: > From: Jeff Hostetler > > Teach do_write_index() to close the index.lock file > before getting the mtime and updating the istate.timestamp > fields. > > On Windows, a file's mtime is not updated until the file is > closed. On Linux, the mtime is set after the last f

Re: [PATCH] read-cache: close index.lock in do_write_index

2017-04-26 Thread Jeff King
On Wed, Apr 26, 2017 at 10:05:23PM +0200, Johannes Schindelin wrote: > From: Jeff Hostetler > > Teach do_write_index() to close the index.lock file > before getting the mtime and updating the istate.timestamp > fields. > > On Windows, a file's mtime is not updated until the file is > closed. O

[PATCH] read-cache: close index.lock in do_write_index

2017-04-26 Thread Johannes Schindelin
From: Jeff Hostetler Teach do_write_index() to close the index.lock file before getting the mtime and updating the istate.timestamp fields. On Windows, a file's mtime is not updated until the file is closed. On Linux, the mtime is set after the last flush. Signed-off-by: Jeff Hostetler Signed