]> source.dussan.org Git - jgit.git/commit
add more control to indexState() return-value 30/1230/2
authorChristian Halstrick <christian.halstrick@sap.com>
Wed, 4 Aug 2010 11:35:56 +0000 (13:35 +0200)
committerStefan Lay <stefan.lay@sap.com>
Wed, 4 Aug 2010 11:35:56 +0000 (13:35 +0200)
commit9a008d68b57713932c135e4333a4930d547272ca
tree3c8df5704e51c15e07d4ed240693a84ea02cc28b
parenta9c0883edec2ed5246a2dc7c046fcb3b044d0680
add more control to indexState() return-value

The indexState() method was enhanced to be more configurable. A bitmask
controls which of the optional parts are reported. All data about
the worktree is not reported anymore by this method which makes the
interface more cleaner for users wanting to test only the state of the
index.
This was done because the previous version reported always so much
additional data that it was hard to write good assertions against it.

Change-Id: I9b481e97f8fcf3fcdbb785b801dc07bfa85dcc33
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RacyGitTests.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryTestCase.java