final class TrackingRefUpdate.Command extends ReceiveCommand
ReceiveCommand.Result, ReceiveCommand.Type
Constructor and Description |
---|
Command() |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
canForceUpdate() |
private RefUpdate.Result |
decode(ReceiveCommand.Result status) |
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.
|
void |
setResult(RefUpdate.Result status)
Set the result of this command.
|
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
boolean canForceUpdate()
public void setResult(RefUpdate.Result status)
ReceiveCommand
setResult
in class ReceiveCommand
status
- the new result code for this command.public void setResult(ReceiveCommand.Result status)
ReceiveCommand
setResult
in class ReceiveCommand
status
- the new status code for this command.public void setResult(ReceiveCommand.Result status, java.lang.String msg)
ReceiveCommand
setResult
in class ReceiveCommand
status
- new status code for this command.msg
- optional message explaining the new status.private RefUpdate.Result decode(ReceiveCommand.Result status)