]> source.dussan.org Git - jgit.git/commitdiff
Say that commit is allowed during bisect 95/1095/1
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 10 Jul 2010 00:32:46 +0000 (02:32 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 10 Jul 2010 00:32:46 +0000 (02:32 +0200)
C Git allows this and it is quite handy.

Change-Id: I1d0238b43fca931ad2079649fb7b431e2815c351
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryState.java

index 901d1b516b7c99308d3605c3965bf343eda8566a..0fa2db8e2c52a22b6c4f8aac2d32a486a28e902a 100644 (file)
@@ -144,8 +144,8 @@ public enum RepositoryState {
                /* Do not reset, checkout instead */
                public boolean canResetHead() { return false; }
 
-               /* Actually it may make sense, but for now we err on the side of caution */
-               public boolean canCommit() { return false; }
+               /* Commit during bisect is useful */
+               public boolean canCommit() { return true; }
 
                public String getDescription() { return "Bisecting"; }
        };