Package org.eclipse.jgit.pgm
Class Push
- java.lang.Object
-
- org.eclipse.jgit.pgm.TextBuiltin
-
- org.eclipse.jgit.pgm.Push
-
class Push extends TextBuiltin
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jgit.pgm.TextBuiltin
TextBuiltin.TerminatedByHelpException
-
-
Field Summary
Fields Modifier and Type Field Description private booleanallprivate booleanatomicprivate booleandryRunprivate booleanforceprivate java.util.List<java.lang.String>pushOptionsprivate java.lang.StringreceivePackprivate java.util.List<RefSpec>refSpecsprivate java.lang.Stringremoteprivate booleanshownURIprivate booleantagsprivate booleanthin(package private) inttimeoutprivate booleanverbose
-
Constructor Summary
Constructors Constructor Description Push()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidnothin(boolean ignored)private voidprintPushResult(ObjectReader reader, URIish uri, PushResult result)private voidprintRefUpdateResult(ObjectReader reader, URIish uri, PushResult result, RemoteRefUpdate rru)private voidprintUpdateLine(char flag, java.lang.String summary, java.lang.String srcRef, java.lang.String destRef, java.lang.String message)protected voidrun()Perform the actions of this command.private static java.lang.StringsafeAbbreviate(ObjectReader reader, ObjectId id)-
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 Detail
-
timeout
int timeout
-
remote
private java.lang.String remote
-
refSpecs
private java.util.List<RefSpec> refSpecs
-
all
private boolean all
-
atomic
private boolean atomic
-
tags
private boolean tags
-
verbose
private boolean verbose
-
thin
private boolean thin
-
force
private boolean force
-
receivePack
private java.lang.String receivePack
-
dryRun
private boolean dryRun
-
pushOptions
private java.util.List<java.lang.String> pushOptions
-
shownURI
private boolean shownURI
-
-
Method Detail
-
nothin
void nothin(boolean ignored)
-
run
protected void run()
Perform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[]).- Specified by:
runin classTextBuiltin
-
printPushResult
private void printPushResult(ObjectReader reader, URIish uri, PushResult result) throws java.io.IOException
- Throws:
java.io.IOException
-
printRefUpdateResult
private void printRefUpdateResult(ObjectReader reader, URIish uri, PushResult result, RemoteRefUpdate rru) throws java.io.IOException
- Throws:
java.io.IOException
-
safeAbbreviate
private static java.lang.String safeAbbreviate(ObjectReader reader, ObjectId id)
-
printUpdateLine
private void printUpdateLine(char flag, java.lang.String summary, java.lang.String srcRef, java.lang.String destRef, java.lang.String message) throws java.io.IOException- Throws:
java.io.IOException
-
-