public static enum GitClient.ResetType extends Enum<GitClient.ResetType>
GitClient.reset(java.lang.String, org.netbeans.libs.git.GitClient.ResetType, org.netbeans.libs.git.progress.ProgressMonitor)
to set the behavior of the command.Enum Constant and Description |
---|
HARD
The reset command will move the current HEAD and update both the Index
and the Working tree with the state in the new HEAD.
|
MIXED
The reset command will move the current HEAD and update the Index with
the state in the new HEAD but will not affect files in the Working tree.
|
SOFT
The command will only set the current HEAD but will not affect the Index
or the Working tree.
|
Modifier and Type | Method and Description |
---|---|
static GitClient.ResetType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GitClient.ResetType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GitClient.ResetType SOFT
public static final GitClient.ResetType MIXED
public static final GitClient.ResetType HARD
public static GitClient.ResetType[] values()
public static GitClient.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 null