@Operation('change') class BranchChangeOp extends java.lang.Object
Changes a branch's start point and/or upstream branch. Returns the changed Branch.
| Modifiers | Name | Description |
|---|---|---|
static enum |
BranchChangeOp.Mode |
| Type | Name and description |
|---|---|
BranchChangeOp.Mode |
modeThe tracking mode to use. |
java.lang.String |
nameThe name of the branch to change. |
java.lang.Object |
startPointThe commit the branch should now start at. |
| Constructor and description |
|---|
BranchChangeOp
(Repository repo) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The tracking mode to use.
The name of the branch to change.
The commit the branch should now start at.
Groovy Documentation