Top Fields Constructors Methods
org.eclipse.jgit.pgm

pack-priv Class Push

extends TextBuiltin
Class Inheritance
Annotations
@Command
common:true
usage:usage_UpdateRemoteRepositoryFromLocalRefs
Imports
java.io.IOException, java.text.MessageFormat, java.util.ArrayList, .List, org.eclipse.jgit.api.Git, .PushCommand, org.eclipse.jgit.api.errors.GitAPIException, org.eclipse.jgit.lib.Constants, .ObjectId, .ObjectReader, .Ref, .TextProgressMonitor, org.eclipse.jgit.pgm.internal.CLIText, org.eclipse.jgit.transport.PushResult, .RefSpec, .RemoteRefUpdate, .RemoteRefUpdate.Status, .Transport, .URIish, org.kohsuke.args4j.Argument, .Option

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv
Push()

Method Summary

Modifier and TypeMethod and Description
pack-priv void
nothin(final boolean ignored)

private void
printPushResult(final ObjectReader reader, final URIish uri, final PushResult result)

private void
printRefUpdateResult(final ObjectReader reader, final URIish uri, final PushResult result, final RemoteRefUpdate rru)

private void
printUpdateLine(final char flag, final String summary, final String srcRef, final String destRef, final String message)

protected void
run()

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

Perform the actions of this command.

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

Field Detail

allback to summary
private boolean all
Annotations
@Option
name:--all
atomicback to summary
private boolean atomic
Annotations
@Option
name:--atomic
dryRunback to summary
private boolean dryRun
Annotations
@Option
name:--dry-run
forceback to summary
private boolean force
Annotations
@Option
name:--force
aliases:-f
pushOptionsback to summary
private List<String> pushOptions
Annotations
@Option
name:--push-option
aliases:-t
receivePackback to summary
private String receivePack
Annotations
@Option
name:--receive-pack
metaVar:metaVar_path
refSpecsback to summary
private List<RefSpec> refSpecs
Annotations
@Argument
index:1
metaVar:metaVar_refspec
remoteback to summary
private String remote
Annotations
@Argument
index:0
metaVar:metaVar_uriish
shownURIback to summary
private boolean shownURI
tagsback to summary
private boolean tags
Annotations
@Option
name:--tags
thinback to summary
private boolean thin
Annotations
@Option
name:--thin
timeoutback to summary
pack-priv int timeout
Annotations
@Option
name:--timeout
metaVar:metaVar_seconds
usage:usage_abortConnectionIfNoActivity
verboseback to summary
private boolean verbose
Annotations
@Option
name:--verbose
aliases:-v

Constructor Detail

Pushback to summary
pack-priv Push()

Method Detail

nothinback to summary
pack-priv void nothin(final boolean ignored)
Annotations
@Option
name:--no-thin
printPushResultback to summary
private void printPushResult(final ObjectReader reader, final URIish uri, final PushResult result) throws IOException
printRefUpdateResultback to summary
private void printRefUpdateResult(final ObjectReader reader, final URIish uri, final PushResult result, final RemoteRefUpdate rru) throws IOException
printUpdateLineback to summary
private void printUpdateLine(final char flag, final String summary, final String srcRef, final String destRef, final String message) throws IOException
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
safeAbbreviateback to summary
private static String safeAbbreviate(ObjectReader reader, ObjectId id)