]> source.dussan.org Git - jgit.git/commit
Fix CommitCommand.setOnly() 75/48075/2
authorChristian Halstrick <christian.halstrick@sap.com>
Mon, 18 May 2015 10:48:08 +0000 (12:48 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 1 Jun 2015 08:42:21 +0000 (10:42 +0200)
commit6d09c486ed833484d9413e3c8f955d2afe27d397
tree76d2b55b14655560c41da9e17d0e1fd22345065b
parentb10259f44b1ad3eaedc78860d16c40c2c536b2cc
Fix CommitCommand.setOnly()

When CommitCommand.setOnly(path) is used a temporary index has to be
created containing only modifications for the specified pathes. The
process to fill this temporary index was broken because filling the
index was stopped when we reached the first untracked file. Instead the
process to fill the temporary index should continue until we processed
all pathes.

Bug: 451465
Change-Id: I22af50d70bd3b81e7c056358724956122b0d158d
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java