public static enum Repository.State extends java.lang.Enum<Repository.State>
Enum Constant and Description |
---|
DETACHED
Detached HEAD state, but not during rebase (for example, manual checkout of a commit hash).
|
GRAFTING
During Cherry-pick/grafting.
|
MERGING
During merge (for instance, merge failed with conflicts that weren't immediately resolved).
|
NORMAL
HEAD is on branch, no merge process is in progress (and no rebase as well).
|
REBASING
During rebase.
|
REVERTING
During revert operation in git.
|
Modifier and Type | Method and Description |
---|---|
static Repository.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Repository.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Repository.State NORMAL
public static final Repository.State MERGING
public static final Repository.State REBASING
public static final Repository.State GRAFTING
public static final Repository.State REVERTING
public static final Repository.State DETACHED
public static Repository.State[] values()
for (Repository.State c : Repository.State.values()) System.out.println(c);
public static Repository.State 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 namejava.lang.NullPointerException
- if the argument is null