Top Fields Constructors Methods
org.eclipse.jgit.pgm

pack-priv Class Add

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

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv
Add()

Method Summary

Modifier and TypeMethod and Description
private void
noAll(boolean ignored)

protected void
run()

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

Perform the actions of this command.

Inherited from org.eclipse.jgit.pgm.TextBuiltin:
abbreviateRefcontainsHelpdiediediedieexecutegetErrorWritergetOutputWritergetRepositorygetResourceBundleinitinitRawparseArgumentsprintUsageprintUsageAndExitprintUsageAndExitrequiresRepositoryresolvesetCommandName

Field Detail

allback to summary
private Boolean all
Annotations
@Option
name:--all
aliases:-A, --no-ignore-removal
usage:usage_addStageDeletions
filepatternsback to summary
private List<String> filepatterns
Annotations
@Argument
metaVar:metaVar_filepattern
usage:usage_filesToAddContentFrom
renormalizeback to summary
private boolean renormalize
Annotations
@Option
name:--renormalize
usage:usage_addRenormalize
updateback to summary
private boolean update
Annotations
@Option
name:--update
aliases:-u
usage:usage_onlyMatchAgainstAlreadyTrackedFiles

Constructor Detail

Addback to summary
pack-priv Add()

Method Detail

noAllback to summary
private void noAll(boolean ignored)
Annotations
@Option
name:--no-all
aliases:--ignore-removal
usage:usage_addDontStageDeletions
runback to summary
protected void run() throws Exception

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
Exceptions
Exception:
an error occurred while processing the command. The main framework will catch the exception and print a message on standard error.