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 boolean
all
private boolean
atomic
private boolean
dryRun
private boolean
force
private java.util.List<java.lang.String>
pushOptions
private java.lang.String
receivePack
private java.util.List<RefSpec>
refSpecs
private java.lang.String
remote
private boolean
shownURI
private boolean
tags
private boolean
thin
(package private) int
timeout
private boolean
verbose
-
Constructor Summary
Constructors Constructor Description Push()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
nothin(boolean ignored)
private void
printPushResult(ObjectReader reader, URIish uri, PushResult result)
private void
printRefUpdateResult(ObjectReader reader, URIish uri, PushResult result, RemoteRefUpdate rru)
private void
printUpdateLine(char flag, java.lang.String summary, java.lang.String srcRef, java.lang.String destRef, java.lang.String message)
protected void
run()
Perform the actions of this command.private static java.lang.String
safeAbbreviate(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:
run
in 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
-
-