Re: [PATCH 2/2] read-cache.c: fix timestamp comparison
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 21, 2008, 19:06 UTC
- Message-ID
- <alpine.LSU.1.00.0801211905100.5731@racer.site>
- In-Reply-To
- <alpine.LFD.1.00.0801211022350.2957@woody.linux-foundation.org>
Hi,
On Mon, 21 Jan 2008, Linus Torvalds wrote:
Show 7 quoted lines
> On Mon, 21 Jan 2008, Junio C Hamano wrote: > > > > The mtime recorded in the cache entry is not time_t anymore but of > > type (unsigned int). This casts the comparison and also adds fuzz > > factor of 1 second. > > I really don't think this is the right fix.
Junio, have you tried Hannes' fix (using ln instead of cp -p)? I would not be surprised if the same happened on Linux as on Windows, only much rarer, since Linux is so darned fast...
Ciao, Dscho