If the source reference is currently pointed to by HEAD, then the
HEAD symbolic reference is updated to point to the new destination.
| Modifier and Type | Field and Description |
|---|---|
| protected final RefUpdate | destination
Update operation to create/overwrite the destination reference. |
| private RefUpdate. | |
| protected final RefUpdate | source
Update operation to read and delete the source reference. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected abstract RefUpdate. | |
| public PersonIdent | Returns: identity of the user making the change in the reflog.Get identity of the user making the change in the reflog. |
| public String | Returns: message the caller wants to include in the reflog; null if the rename should not be logged.Get the message to include in the reflog. |
| public RefUpdate. | |
| protected boolean | Returns: true if theConstants#HEAD reference needs to be linked
to the new destination name.Whether the |
| public RefUpdate. | |
| public void | setRefLogIdent(PersonIdent
identity of the user. If null the identity will be
automatically determined based on the repository
configuration. pi)Set the identity of the user appearing in the reflog. |
| public void | setRefLogMessage(String
the message to describe this change. msg)Set the message to include in the reflog. |
| destination | back to summary |
|---|---|
| protected final RefUpdate destination Update operation to create/overwrite the destination reference. | |
| result | back to summary |
|---|---|
| private RefUpdate. | |
| source | back to summary |
|---|---|
| protected final RefUpdate source Update operation to read and delete the source reference. | |
| RefRename | back to summary |
|---|---|
| protected RefRename(RefUpdate src, RefUpdate dst) Initialize a new rename operation. | |
| disableRefLog | back to summary |
|---|---|
| public void disableRefLog() Don't record this rename in the ref's associated reflog. | |
| doRename | back to summary |
|---|---|
| protected abstract RefUpdate. Do the actual rename
| |
| getRefLogIdent | back to summary |
|---|---|
| public PersonIdent getRefLogIdent() Get identity of the user making the change in the reflog.
| |
| getRefLogMessage | back to summary |
|---|---|
| public String getRefLogMessage() Get the message to include in the reflog.
| |
| getResult | back to summary |
|---|---|
| public RefUpdate. Get result of rename operation | |
| needToUpdateHEAD | back to summary |
|---|---|
| protected boolean needToUpdateHEAD() throws IOException Whether the
| |
| rename | back to summary |
|---|---|
| public RefUpdate. Rename
| |
| setRefLogIdent | back to summary |
|---|---|
| public void setRefLogIdent(PersonIdent pi) Set the identity of the user appearing in the reflog. The timestamp portion of the identity is ignored. A new identity with the current timestamp will be created automatically when the rename occurs and the log record is written.
| |
| setRefLogMessage | back to summary |
|---|---|
| public void setRefLogMessage(String msg) Set the message to include in the reflog.
| |