From: Peter Harris Date: Thu, 18 Feb 2010 20:14:06 GMT Subject: Re: [PATCH] Teach "git add" and friends to be paranoid Message-ID: In-Reply-To: On Thu, Feb 18, 2010 at 2:58 PM, Nicolas Pitre wrote: > > Can't we rely on the mtime of the source file?  Sample it before > starting hashing it, then make sure it didn't change when done. Some filesystems (eg FAT) have an abysmal mtime granularity (2 seconds). The same race exists on other filesystems, albeit with a much narrower window of opportunity. Peter Harris