public boolean canCheckout() { return false; }
public boolean canResetHead() { return false; }
public boolean canCommit() { return false; }
+ public boolean canAmend() { return false; }
public String getDescription() { return "Bare"; }
},
public boolean canCheckout() { return true; }
public boolean canResetHead() { return true; }
public boolean canCommit() { return true; }
+ public boolean canAmend() { return true; }
public String getDescription() { return JGitText.get().repositoryState_normal; }
},
public boolean canCheckout() { return false; }
public boolean canResetHead() { return true; }
public boolean canCommit() { return false; }
+ public boolean canAmend() { return false; }
public String getDescription() { return JGitText.get().repositoryState_conflicts; }
},
public boolean canCheckout() { return true; }
public boolean canResetHead() { return true; }
public boolean canCommit() { return true; }
+ public boolean canAmend() { return false; }
public String getDescription() { return JGitText.get().repositoryState_merged; }
},
public boolean canCheckout() { return false; }
public boolean canResetHead() { return true; }
public boolean canCommit() { return false; }
+ public boolean canAmend() { return false; }
public String getDescription() { return JGitText.get().repositoryState_conflicts; }
},
public boolean canCheckout() { return true; }
public boolean canResetHead() { return true; }
public boolean canCommit() { return true; }
+ public boolean canAmend() { return false; }
public String getDescription() { return JGitText.get().repositoryState_merged; }
},
public boolean canCheckout() { return false; }
public boolean canResetHead() { return false; }
public boolean canCommit() { return true; }
+ public boolean canAmend() { return true; }
public String getDescription() { return JGitText.get().repositoryState_rebaseOrApplyMailbox; }
},
public boolean canCheckout() { return false; }
public boolean canResetHead() { return false; }
public boolean canCommit() { return true; }
+ public boolean canAmend() { return true; }
public String getDescription() { return JGitText.get().repositoryState_rebase; }
},
public boolean canCheckout() { return false; }
public boolean canResetHead() { return false; }
public boolean canCommit() { return true; }
+ public boolean canAmend() { return true; }
public String getDescription() { return JGitText.get().repositoryState_applyMailbox; }
},
public boolean canCheckout() { return false; }
public boolean canResetHead() { return false; }
public boolean canCommit() { return true; }
+ public boolean canAmend() { return true; }
public String getDescription() { return JGitText.get().repositoryState_rebaseWithMerge; }
},
public boolean canCheckout() { return false; }
public boolean canResetHead() { return false; }
public boolean canCommit() { return true; }
+ public boolean canAmend() { return true; }
public String getDescription() { return JGitText.get().repositoryState_rebaseInteractive; }
},
/* Commit during bisect is useful */
public boolean canCommit() { return true; }
+ public boolean canAmend() { return false; }
+
public String getDescription() { return JGitText.get().repositoryState_bisecting; }
};
*/
public abstract boolean canResetHead();
+ /**
+ * @return true if amending is considered SAFE
+ */
+ public abstract boolean canAmend();
+
/**
* @return a human readable description of the state.
*/