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) booleancanForceUpdate()private RefUpdate.Resultdecode(ReceiveCommand.Result status)voidsetResult(RefUpdate.Result status)Set the result of this command.voidsetResult(ReceiveCommand.Result status)Set the status of this command.voidsetResult(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:ReceiveCommandSet the result of this command.- Overrides:
setResultin classReceiveCommand- Parameters:
status- the new result code for this command.
-
setResult
public void setResult(ReceiveCommand.Result status)
Description copied from class:ReceiveCommandSet the status of this command.- Overrides:
setResultin 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:ReceiveCommandSet the status of this command.- Overrides:
setResultin classReceiveCommand- Parameters:
status- new status code for this command.msg- optional message explaining the new status.
-
decode
private RefUpdate.Result decode(ReceiveCommand.Result status)
-
-