From: Robin Rosenberg Date: Sat, 10 Jul 2010 00:32:46 +0000 (+0200) Subject: Say that commit is allowed during bisect X-Git-Tag: v0.9.1~176^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a1492f192207bc20383de02f206a7bdf41064fbb;p=jgit.git Say that commit is allowed during bisect C Git allows this and it is quite handy. Change-Id: I1d0238b43fca931ad2079649fb7b431e2815c351 Signed-off-by: Robin Rosenberg --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryState.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryState.java index 901d1b516b..0fa2db8e2c 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryState.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryState.java @@ -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"; } };