]> source.dussan.org Git - jgit.git/commit
Smudge index entries on first write (too), as well when reading 13/5413/9
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 21 May 2012 17:48:40 +0000 (10:48 -0700)
committerKevin Sawicki <kevin@github.com>
Mon, 21 May 2012 17:48:40 +0000 (10:48 -0700)
commit1953ae6aeec51dafedadb0fdb3f352ed4d027f45
treef4a39a4a35380b5c5d9d50ee2d553b333fd92205
parent15147a273fc9085ca3cf459dec42f7a88b22ffbf
Smudge index entries on first write (too), as well when reading

That happens when the index and a new file is created within the same
second and becomes a problem if we then modify the newly created file
within the same second after adding it to the index. Without smudging
JGit will, on later reads, think the file is unchanged.

The accompanying test passed with the smuding on read.

Change-Id: I4dfecf5c93993ef690e7f0dddb3f3e6125daae15
org.eclipse.jgit.test/tst/org/eclipse/jgit/treewalk/FileTreeIteratorTest.java
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCache.java
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java