@Operation('checkout') class CheckoutOp extends java.lang.Object
Checks out a branch to the working tree. Does not support checking out specific paths.
| Type | Name and description |
|---|---|
java.lang.Object |
branchThe branch or commit to checkout. |
boolean |
createBranchtrue if the branch does not exist and should be created,
false (the default) otherwise |
boolean |
orphantrue if the new branch is to be an orphan,
false (the default) otherwise |
java.lang.Object |
startPointIf createBranch or orphan is true, start the new branch
at this commit. |
| Constructor and description |
|---|
CheckoutOp
(Repository repo) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Void |
call() |
| 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 branch or commit to checkout.
true if the branch does not exist and should be created,
false (the default) otherwise
true if the new branch is to be an orphan,
false (the default) otherwise
If createBranch or orphan is true, start the new branch
at this commit.
Groovy Documentation