Package org.eclipse.jgit.transport
Class TrackingRefUpdate.Command
- java.lang.Object
-
- org.eclipse.jgit.transport.ReceiveCommand
-
- org.eclipse.jgit.transport.TrackingRefUpdate.Command
-
- Enclosing class:
- TrackingRefUpdate
final class TrackingRefUpdate.Command extends ReceiveCommand
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jgit.transport.ReceiveCommand
ReceiveCommand.Result, ReceiveCommand.Type
-
-
Constructor Summary
Constructors Constructor Description Command()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
canForceUpdate()
private RefUpdate.Result
decode(ReceiveCommand.Result status)
void
setResult(RefUpdate.Result status)
Set the result of this command.void
setResult(ReceiveCommand.Result status)
Set the status of this command.void
setResult(ReceiveCommand.Result status, java.lang.String msg)
Set the status of this command.-
Methods inherited from class org.eclipse.jgit.transport.ReceiveCommand
abort, disableRefLog, execute, filter, filter, getMessage, getNewId, getNewSymref, getOldId, getOldSymref, getRef, getRefLogMessage, getRefName, getResult, getType, hasCustomRefLog, isForceRefLog, isRefLogDisabled, isRefLogIncludingResult, isTransactionAborted, link, link, reject, setForceRefLog, setRef, setRefLogMessage, setType, setTypeFastForwardUpdate, toString, unlink, updateType
-
-
-
-
Method Detail
-
canForceUpdate
boolean canForceUpdate()
-
setResult
public void setResult(RefUpdate.Result status)
Description copied from class:ReceiveCommand
Set the result of this command.- Overrides:
setResult
in classReceiveCommand
- Parameters:
status
- the new result code for this command.
-
setResult
public void setResult(ReceiveCommand.Result status)
Description copied from class:ReceiveCommand
Set the status of this command.- Overrides:
setResult
in classReceiveCommand
- Parameters:
status
- the new status code for this command.
-
setResult
public void setResult(ReceiveCommand.Result status, java.lang.String msg)
Description copied from class:ReceiveCommand
Set the status of this command.- Overrides:
setResult
in classReceiveCommand
- Parameters:
status
- new status code for this command.msg
- optional message explaining the new status.
-
decode
private RefUpdate.Result decode(ReceiveCommand.Result status)
-
-