|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ResetCommand.ResetType>
org.eclipse.jgit.api.ResetCommand.ResetType
public static enum ResetCommand.ResetType
Kind of reset
Enum Constant Summary | |
---|---|
HARD
Change the ref, the index and the workdir |
|
KEEP
Change the ref, the index and the workdir that are different between respective commit and HEAD |
|
MERGE
Resets the index and updates the files in the working tree that are different between respective commit and HEAD, but keeps those which are different between the index and working tree |
|
MIXED
Change the ref and the index, the workdir is not changed. |
|
SOFT
Just change the ref, the index and workdir are not changed. |
Method Summary | |
---|---|
static ResetCommand.ResetType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ResetCommand.ResetType[] |
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 ResetCommand.ResetType SOFT
public static final ResetCommand.ResetType MIXED
public static final ResetCommand.ResetType HARD
public static final ResetCommand.ResetType MERGE
public static final ResetCommand.ResetType KEEP
Method Detail |
---|
public static ResetCommand.ResetType[] values()
for (ResetCommand.ResetType c : ResetCommand.ResetType.values()) System.out.println(c);
public static ResetCommand.ResetType 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 null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |