From a1492f192207bc20383de02f206a7bdf41064fbb Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Sat, 10 Jul 2010 02:32:46 +0200 Subject: [PATCH] Say that commit is allowed during bisect C Git allows this and it is quite handy. Change-Id: I1d0238b43fca931ad2079649fb7b431e2815c351 Signed-off-by: Robin Rosenberg --- .../src/org/eclipse/jgit/lib/RepositoryState.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 901d1b516..0fa2db8e2 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"; } };