Top Fields Constructors Methods
org.eclipse.jgit.pgm

pack-priv Class Reset

extends TextBuiltin
Class Inheritance
Annotations
@Command
common:true
usage:usage_reset
Imports
java.util.ArrayList, .List, org.eclipse.jgit.api.Git, .ResetCommand, .ResetCommand.ResetType, org.eclipse.jgit.api.errors.GitAPIException, org.eclipse.jgit.pgm.internal.CLIText, org.kohsuke.args4j.Argument, .Option, org.kohsuke.args4j.spi.RestOfArgumentsHandler

Field Summary

Modifier and TypeField and Description
private String
private boolean
private boolean
private List<String>
private boolean
Inherited from org.eclipse.jgit.pgm.TextBuiltin:
argWalkdberrserrwgitdirinsoutsoutw

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
run()

Implements abstract org.eclipse.jgit.pgm.TextBuiltin.run.

Perform the actions of this command.

private static ResetCommand.ResetType
Inherited from org.eclipse.jgit.pgm.TextBuiltin:
abbreviateRefcontainsHelpdiediediedieexecutegetErrorWritergetOutputWritergetRepositorygetResourceBundleinitinitRawparseArgumentsprintUsageprintUsageAndExitprintUsageAndExitrequiresRepositoryresolvesetCommandName

Field Detail

commitback to summary
private String commit
Annotations
@Argument
required:false
index:0
metaVar:metaVar_commitish
usage:usage_resetReference
hardback to summary
private boolean hard
Annotations
@Option
name:--hard
usage:usage_resetHard
mixedback to summary
private boolean mixed
Annotations
@Option
name:--mixed
usage:usage_resetMixed
pathsback to summary
private List<String> paths
Annotations
@Argument
required:false
index:1
metaVar:metaVar_paths
@Option
name:--
metaVar:metaVar_paths
handler:RestOfArgumentsHandler
softback to summary
private boolean soft
Annotations
@Option
name:--soft
usage:usage_resetSoft

Constructor Detail

Resetback to summary
pack-priv Reset()

Method Detail

runback to summary
protected void run()

Implements abstract org.eclipse.jgit.pgm.TextBuiltin.run.

Doc from org.eclipse.jgit.pgm.TextBuiltin.run.

Perform the actions of this command.

This method should only be invoked by execute(String[]).

Annotations
@Override
selectModeback to summary
private static ResetCommand.ResetType selectMode(ResetCommand.ResetType mode, ResetCommand.ResetType want)