Package org.eclipse.jgit.pgm
Class Reset
java.lang.Object
org.eclipse.jgit.pgm.TextBuiltin
org.eclipse.jgit.pgm.Reset
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jgit.pgm.TextBuiltin
TextBuiltin.TerminatedByHelpException
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
run()
Perform the actions of this command.private static ResetCommand.ResetType
selectMode
(ResetCommand.ResetType mode, ResetCommand.ResetType want) Methods inherited from class org.eclipse.jgit.pgm.TextBuiltin
abbreviateRef, containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, requiresRepository, resolve, setCommandName
-
Field Details
-
soft
private boolean soft -
mixed
private boolean mixed -
hard
private boolean hard -
commit
-
paths
-
-
Constructor Details
-
Reset
Reset()
-
-
Method Details
-
run
protected void run()Perform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[])
.- Specified by:
run
in classTextBuiltin
-
selectMode
private static ResetCommand.ResetType selectMode(ResetCommand.ResetType mode, ResetCommand.ResetType want)
-