|
|
|
@ -69,6 +69,9 @@ public enum RepositoryState {
|
|
|
|
|
@Override |
|
|
|
|
public boolean canAmend() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isRebasing() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getDescription() { return "Bare"; } |
|
|
|
|
}, |
|
|
|
@ -89,6 +92,9 @@ public enum RepositoryState {
|
|
|
|
|
@Override |
|
|
|
|
public boolean canAmend() { return true; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isRebasing() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getDescription() { return JGitText.get().repositoryState_normal; } |
|
|
|
|
}, |
|
|
|
@ -108,6 +114,9 @@ public enum RepositoryState {
|
|
|
|
|
@Override |
|
|
|
|
public boolean canAmend() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isRebasing() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getDescription() { return JGitText.get().repositoryState_conflicts; } |
|
|
|
|
}, |
|
|
|
@ -129,6 +138,9 @@ public enum RepositoryState {
|
|
|
|
|
@Override |
|
|
|
|
public boolean canAmend() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isRebasing() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getDescription() { return JGitText.get().repositoryState_merged; } |
|
|
|
|
}, |
|
|
|
@ -148,6 +160,9 @@ public enum RepositoryState {
|
|
|
|
|
@Override |
|
|
|
|
public boolean canAmend() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isRebasing() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getDescription() { return JGitText.get().repositoryState_conflicts; } |
|
|
|
|
}, |
|
|
|
@ -169,6 +184,9 @@ public enum RepositoryState {
|
|
|
|
|
@Override |
|
|
|
|
public boolean canAmend() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isRebasing() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getDescription() { return JGitText.get().repositoryState_merged; } |
|
|
|
|
}, |
|
|
|
@ -188,6 +206,9 @@ public enum RepositoryState {
|
|
|
|
|
@Override |
|
|
|
|
public boolean canAmend() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isRebasing() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getDescription() { return JGitText.get().repositoryState_conflicts; } |
|
|
|
|
}, |
|
|
|
@ -209,6 +230,9 @@ public enum RepositoryState {
|
|
|
|
|
@Override |
|
|
|
|
public boolean canAmend() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isRebasing() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getDescription() { return JGitText.get().repositoryState_merged; } |
|
|
|
|
}, |
|
|
|
@ -229,6 +253,9 @@ public enum RepositoryState {
|
|
|
|
|
@Override |
|
|
|
|
public boolean canAmend() { return true; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isRebasing() { return true; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getDescription() { return JGitText.get().repositoryState_rebaseOrApplyMailbox; } |
|
|
|
|
}, |
|
|
|
@ -249,6 +276,9 @@ public enum RepositoryState {
|
|
|
|
|
@Override |
|
|
|
|
public boolean canAmend() { return true; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isRebasing() { return true; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getDescription() { return JGitText.get().repositoryState_rebase; } |
|
|
|
|
}, |
|
|
|
@ -269,6 +299,9 @@ public enum RepositoryState {
|
|
|
|
|
@Override |
|
|
|
|
public boolean canAmend() { return true; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isRebasing() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getDescription() { return JGitText.get().repositoryState_applyMailbox; } |
|
|
|
|
}, |
|
|
|
@ -289,6 +322,9 @@ public enum RepositoryState {
|
|
|
|
|
@Override |
|
|
|
|
public boolean canAmend() { return true; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isRebasing() { return true; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getDescription() { return JGitText.get().repositoryState_rebaseWithMerge; } |
|
|
|
|
}, |
|
|
|
@ -309,6 +345,9 @@ public enum RepositoryState {
|
|
|
|
|
@Override |
|
|
|
|
public boolean canAmend() { return true; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isRebasing() { return true; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getDescription() { return JGitText.get().repositoryState_rebaseInteractive; } |
|
|
|
|
}, |
|
|
|
@ -332,6 +371,9 @@ public enum RepositoryState {
|
|
|
|
|
@Override |
|
|
|
|
public boolean canAmend() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isRebasing() { return false; } |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getDescription() { return JGitText.get().repositoryState_bisecting; } |
|
|
|
|
}; |
|
|
|
@ -356,6 +398,12 @@ public enum RepositoryState {
|
|
|
|
|
*/ |
|
|
|
|
public abstract boolean canAmend(); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return true if the repository is currently in a rebase |
|
|
|
|
* @since 2.4 |
|
|
|
|
*/ |
|
|
|
|
public abstract boolean isRebasing(); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return a human readable description of the state. |
|
|
|
|
*/ |
|
|
|
|