class Reset extends TextBuiltin
TextBuiltin.TerminatedByHelpException
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
commit |
private boolean |
hard |
private boolean |
mixed |
private java.util.List<java.lang.String> |
paths |
private boolean |
soft |
Constructor and Description |
---|
Reset() |
Modifier and Type | Method and Description |
---|---|
protected void |
run()
Perform the actions of this command.
|
private static ResetCommand.ResetType |
selectMode(ResetCommand.ResetType mode,
ResetCommand.ResetType want) |
abbreviateRef, containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, requiresRepository, resolve, setCommandName
private boolean soft
private boolean mixed
private boolean hard
private java.lang.String commit
private java.util.List<java.lang.String> paths
protected void run()
This method should only be invoked by TextBuiltin.execute(String[])
.
run
in class TextBuiltin
private static ResetCommand.ResetType selectMode(ResetCommand.ResetType mode, ResetCommand.ResetType want)