@Operation('add') class BranchAddOp extends java.lang.Object
Adds a branch to the repository. Returns the newly created Branch.
| Modifiers | Name | Description |
|---|---|---|
static enum |
BranchAddOp.Mode |
| Type | Name and description |
|---|---|
BranchAddOp.Mode |
modeThe tracking mode to use. |
java.lang.String |
nameThe name of the branch to add. |
java.lang.Object |
startPointThe commit the branch should start at. |
| Constructor and description |
|---|
BranchAddOp
(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. If null, will use the default
behavior.
The name of the branch to add.
The commit the branch should start at. If this is a remote branch it will be automatically tracked.
Groovy Documentation