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, setCommandNameprivate boolean soft
private boolean mixed
private boolean hard
private java.lang.String commit
private java.util.List<java.lang.String> paths
protected void run()
throws java.lang.Exception
This method should only be invoked by TextBuiltin.execute(String[]).
run in class TextBuiltinjava.lang.Exception - an error occurred while processing the command. The main
framework will catch the exception and print a message on
standard error.private static ResetCommand.ResetType selectMode(ResetCommand.ResetType mode, ResetCommand.ResetType want)