]> source.dussan.org Git - jgit.git/commitdiff
Fix RepositoryState.MERGING 09/1509/1
authorJens Baumgart <jens.baumgart@sap.com>
Thu, 2 Sep 2010 16:01:47 +0000 (18:01 +0200)
committerJens Baumgart <jens.baumgart@sap.com>
Thu, 2 Sep 2010 16:01:47 +0000 (18:01 +0200)
canResetHead now returns true.
Resetting mixed / hard works in EGit in merging state.

Change-Id: I1512145bbd831bb9734528ce8b71b1701e3e6aa9
Signed-off-by: Jens Baumgart <jens.baumgart@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryState.java

index 0a59906e94eec2168a5d43439edc2d81c7bc67d1..e0b5389ac02d92551de2934fd078a5136dd4bcf8 100644 (file)
@@ -73,11 +73,11 @@ public enum RepositoryState {
                public String getDescription() { return JGitText.get().repositoryState_normal; }
        },
 
-       /** An unfinished merge. Must resole or reset before continuing normally
+       /** An unfinished merge. Must resolve or reset before continuing normally
         */
        MERGING {
                public boolean canCheckout() { return false; }
-               public boolean canResetHead() { return false; }
+               public boolean canResetHead() { return true; }
                public boolean canCommit() { return false; }
                public String getDescription() { return JGitText.get().repositoryState_conflicts; }
        },