public static enum ResetCommand.ResetType extends Enum<ResetCommand.ResetType>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- if the argument is nullCopyright © 2019 Eclipse JGit Project. All rights reserved.