]> source.dussan.org Git - jgit.git/commit
Update smudged entries when writing index 37/6137/1
authorKevin Sawicki <kevin@github.com>
Mon, 21 May 2012 22:00:23 +0000 (15:00 -0700)
committerKevin Sawicki <kevin@github.com>
Mon, 28 May 2012 21:01:14 +0000 (14:01 -0700)
commitdac66672df0535f61a13273524d46e1e0012ca69
tree640a1d4ece6f1a41741d503e9f8adc2c0383393c
parent24a0f47e32ab7cdf20c2201d7100599ea057f8a3
Update smudged entries when writing index

Overload DirCache.lock to take a repository that is
used for updating smudged index entries with information
from the repository's working tree.

New unit tests are also added for updating smudged index
entries on reset, checkout, and commit.

Change-Id: I88689f26000e4e57e77931e5ace7c804d92af1b6
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CheckoutCommandTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitCommandTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/ResetCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCache.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java