From: Juergen Ruehle Date: Mon, 17 Jul 2006 16:32:03 GMT Subject: Re: comparing file contents in is_exact_match? Message-ID: <17595.48003.145000.414361@lapjr.intranet.kiel.bmiag.de> In-Reply-To: Johannes Schindelin writes: > > > It is not Cygwin really. It's windows. You can't rename or delete an > > > open or mmapped file in that thing. > > > > And GIT's workaround is to read the whole file into memory and close > > it after that? Uh-oh. > > If you have a better idea (which does not make git source code ugly), go > ahead, write a patch. On several boxes I've tested the mmap code passes the tests on NTFS. It is usable for my simple work even on FAT32 with an unlink before the rename in lockfile.c, but that probably breaks in more involved scenarios. jr