Re: comparing file contents in is_exact_match?
- From
- Juergen Ruehle <j.ruehle@bmiag.de>
- Date
- Jul 17, 2006, 16:32 UTC
- Message-ID
- <17595.48003.145000.414361@lapjr.intranet.kiel.bmiag.de>
- In-Reply-To
- <Pine.LNX.4.63.0607171439270.29667@wbgn013.biozentrum.uni-wuerzburg.de>
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