| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Ref | call()
Implements abstract org. Implements java. Computes a result, or throws an exception if unable to do so. |
| public RenameBranchCommand | |
| public RenameBranchCommand | Returns: this instancethe name of the branch to rename; if not set, the currently
checked out branch (if any) will be renamed oldName)Sets the old name of the branch. |
| newName | back to summary |
|---|---|
| private String newName | |
| oldName | back to summary |
|---|---|
| private String oldName | |
| RenameBranchCommand | back to summary |
|---|---|
| protected RenameBranchCommand(Repository repo) Constructor for RenameBranchCommand.
| |
| call | back to summary |
|---|---|
| public Ref call() throws GitAPIException, RefNotFoundException, InvalidRefNameException, RefAlreadyExistsException, DetachedHeadException Implements abstract org. Implements java. Doc from org. Computes a result, or throws an exception if unable to do so. Execute the command
| |
| setNewName | back to summary |
|---|---|
| public RenameBranchCommand setNewName(String newName) Sets the new short name of the branch.
The full name is constructed using the prefix of the branch to be renamed
defined by either
| |
| setOldName | back to summary |
|---|---|
| public RenameBranchCommand setOldName(String oldName) Sets the old name of the branch.
| |