瀏覽代碼

Fix RepositoryState.MERGING

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>
tags/v0.9.1
Jens Baumgart 13 年之前
父節點
當前提交
f714988c61
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryState.java

+ 2
- 2
org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryState.java 查看文件

@@ -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; }
},

Loading…
取消
儲存