From: Alex Riesen Date: Mon, 20 Apr 2009 22:17:35 GMT Subject: Re: [PATCH 2/2] Windows: Skip fstat/lstat optimization in write_entry() Message-ID: <81b0412b0904201517v2d842528x59ef7bed85efc014@mail.gmail.com> In-Reply-To: <7vbpqrdnyn.fsf@gitster.siamese.dyndns.org> 2009/4/20 Junio C Hamano : > Dmitry Potapov writes: >> >> If the time passed between the creating file and end of writing to it is >> small (less than timestamp resolution), you may not notice the problem. >> The following program demonstrates the problem with fstat on Windows. >> (I compiled it using Cygwin). If you remove 'sleep' then you may not >> notice the problem for a long time. > > I take that you mean that Alex's patch does not work as intended.  ... Yes, it just makes the problem harder to notice by providing a faster fstat.