|
||||||||||
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. |
|
BARE
Has no work tree and cannot be used for normal editing. |
|
BISECTING
Bisecting being done. |
|
CHERRY_PICKING
An unfinished cherry-pick. |
|
CHERRY_PICKING_RESOLVED
A cherry-pick where all conflicts have been resolved. |
|
MERGING
An unfinished merge. |
|
MERGING_RESOLVED
An merge where all conflicts have been resolved. |
|
REBASING
An unfinished rebase or am. |
|
REBASING_INTERACTIVE
An unfinished interactive rebase. |
|
REBASING_MERGE
An unfinished rebase with merge. |
|
REBASING_REBASING
An unfinished rebase. |
|
REVERTING
An unfinished revert. |
|
REVERTING_RESOLVED
A revert where all conflicts have been resolved. |
|
SAFE
A safe state for working normally |
Method Summary | |
---|---|
abstract boolean |
canAmend()
|
abstract boolean |
canCheckout()
|
abstract boolean |
canCommit()
|
abstract boolean |
canResetHead()
|
abstract String |
getDescription()
|
static RepositoryState |
valueOf(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 BARE
public static final RepositoryState SAFE
public static final RepositoryState MERGING
public static final RepositoryState MERGING_RESOLVED
public static final RepositoryState CHERRY_PICKING
public static final RepositoryState CHERRY_PICKING_RESOLVED
public static final RepositoryState REVERTING
public static final RepositoryState REVERTING_RESOLVED
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(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic abstract boolean canCheckout()
public abstract boolean canCommit()
public abstract boolean canResetHead()
public abstract boolean canAmend()
public abstract String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |