]> source.dussan.org Git - jgit.git/commit
added resetIndex() to RepositoryTestCase 15/1315/2
authorChristian Halstrick <christian.halstrick@sap.com>
Mon, 16 Aug 2010 16:42:24 +0000 (18:42 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 18 Aug 2010 23:45:56 +0000 (16:45 -0700)
commite02b68a8b7c407659995d09fec7044dc366e40a7
tree0348d62ae8fe0be45bdc335ecbc633061f814941
parenta85c08e1c8542be8078b5515b7c1f6336410062b
added resetIndex() to RepositoryTestCase

Added a utility method to set the reset an index to match exactly
some content in the filesystem. This can be used by tests to prepare
commits in the working-tree and set the index in one shot.

[sp: Cleaned up formatting, added getEntryFile(), released inserter.]

Change-Id: If38b1f7cacaaf769f51b14541c5da0c1e24568a5
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RacyGitTests.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryTestCase.java
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/FileTreeIterator.java