|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<RepositoryState>
org.eclipse.jgit.lib.RepositoryState
public enum RepositoryState
Important state of the repository that affects what can and cannot bed done. This is things like unhandled conflicted merges and unfinished rebase. The granularity and set of states are somewhat arbitrary. The methods on the state are the only supported means of deciding what to do.
| Enum Constant Summary | |
|---|---|
APPLY
An unfinished apply. |
|
BISECTING
Bisecting being done. |
|
MERGING
An unfinished merge. |
|
REBASING
An unfinished rebase or am. |
|
REBASING_INTERACTIVE
An unfinished interactive rebase. |
|
REBASING_MERGE
An unfinished rebase with merge. |
|
REBASING_REBASING
An unfinished rebase. |
|
SAFE
A safe state for working normally |
|
| Method Summary | |
|---|---|
abstract boolean |
canCheckout()
|
abstract boolean |
canCommit()
|
abstract boolean |
canResetHead()
|
abstract java.lang.String |
getDescription()
|
static RepositoryState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static RepositoryState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final RepositoryState SAFE
public static final RepositoryState MERGING
public static final RepositoryState REBASING
public static final RepositoryState REBASING_REBASING
public static final RepositoryState APPLY
public static final RepositoryState REBASING_MERGE
public static final RepositoryState REBASING_INTERACTIVE
public static final RepositoryState BISECTING
| Method Detail |
|---|
public static RepositoryState[] values()
for (RepositoryState c : RepositoryState.values()) System.out.println(c);
public static RepositoryState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic abstract boolean canCheckout()
public abstract boolean canCommit()
public abstract boolean canResetHead()
public abstract java.lang.String getDescription()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||