| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private ReceiveCommand | |
| pack-priv boolean | |
| pack-priv final String | |
| pack-priv ObjectId | |
| pack-priv ObjectId | |
| private final String | |
| private RefUpdate. |
| Access | Constructor and Description |
|---|---|
| pack-priv | TrackingRefUpdate(boolean canForceUpdate, String remoteName, String localName, AnyObjectId oldValue, AnyObjectId newValue)
|
| Modifier and Type | Method and Description |
|---|---|
| public ReceiveCommand | Returns: this update wrapped by a ReceiveCommand.Get this update wrapped by a ReceiveCommand. |
| public String | Returns: the name used within this local repository.Get the name of the local tracking ref. |
| public ObjectId | Returns: new value. Null if the caller has not configured it.Get the new value the ref will be (or was) updated to. |
| public ObjectId | Returns: the value of the ref prior to the update being attempted.The old value of the ref, prior to the update being attempted. |
| public String | |
| public RefUpdate. | |
| pack-priv void | |
| public String |
| cmd | back to summary |
|---|---|
| private ReceiveCommand cmd | |
| forceUpdate | back to summary |
|---|---|
| pack-priv boolean forceUpdate | |
| localName | back to summary |
|---|---|
| pack-priv final String localName | |
| newObjectId | back to summary |
|---|---|
| pack-priv ObjectId newObjectId | |
| oldObjectId | back to summary |
|---|---|
| pack-priv ObjectId oldObjectId | |
| remoteName | back to summary |
|---|---|
| private final String remoteName | |
| result | back to summary |
|---|---|
| private RefUpdate. | |
| TrackingRefUpdate | back to summary |
|---|---|
| pack-priv TrackingRefUpdate(boolean canForceUpdate, String remoteName, String localName, AnyObjectId oldValue, AnyObjectId newValue) | |
| asReceiveCommand | back to summary |
|---|---|
| public ReceiveCommand asReceiveCommand() Get this update wrapped by a ReceiveCommand.
| |
| getLocalName | back to summary |
|---|---|
| public String getLocalName() Get the name of the local tracking ref. Usually this is of the form "refs/remotes/origin/master".
| |
| getNewObjectId | back to summary |
|---|---|
| public ObjectId getNewObjectId() Get the new value the ref will be (or was) updated to.
| |
| getOldObjectId | back to summary |
|---|---|
| public ObjectId getOldObjectId() The old value of the ref, prior to the update being attempted. This value may differ before and after the update method. Initially it is populated with the value of the ref before the lock is taken, but the old value may change if someone else modified the ref between the time we last read it and when the ref was locked for update.
| |
| getRemoteName | back to summary |
|---|---|
| public String getRemoteName() Get the name of the remote ref. Usually this is of the form "refs/heads/master".
| |
| getResult | back to summary |
|---|---|
| public RefUpdate. Get the status of this update. | |
| setResult | back to summary |
|---|---|
| pack-priv void setResult(RefUpdate. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| private RefUpdate. | |
| public void | setResult(RefUpdate.
the new result code for this command. statusOverrides org. Set the result of this command. |
| public void | setResult(ReceiveCommand.
the new status code for this command. statusOverrides org. Set the status of this command. |
| public void | setResult(ReceiveCommand.
new status code for this command. status,optional message explaining the new status. msg)Overrides org. Set the status of this command. |
| Command | back to summary |
|---|---|
| pack-priv Command() | |
| canForceUpdate | back to summary |
|---|---|
| pack-priv boolean canForceUpdate() | |
| decode | back to summary |
|---|---|
| private RefUpdate. | |
| setResult | back to summary |
|---|---|
| public void setResult(RefUpdate. Overrides org. Doc from org. Set the result of this command. | |
| setResult | back to summary |
|---|---|
| public void setResult(ReceiveCommand. Overrides org. Doc from org. Set the status of this command.
| |
| setResult | back to summary |
|---|---|
| public void setResult(ReceiveCommand. Overrides org. Doc from org. Set the status of this command.
| |