|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.DefaultTask
org.ajoberstar.gradle.git.tasks.GitBase
org.ajoberstar.gradle.git.tasks.GitBranchCreate
public class GitBranchCreate extends GitBase
Creates a new branch in a Git repository.
Nested Class Summary | |
---|---|
static enum |
GitBranchCreate.Mode
Tracking mode for branches. |
Method Summary | |
---|---|
java.lang.String
|
getBranchName()
Gets the name of the branch to create or update. |
boolean
|
getForce()
Gets whether an existing branch will be modified by this task. |
GitBranchCreate.Mode
|
getMode()
Gets the tracking mode of the branch. |
java.lang.String
|
getStartPoint()
Gets the starting point of the branch. |
void
|
setBranchName(java.lang.String branchName)
Sets the name of the branch to create or update. |
void
|
setForce(boolean force)
Sets whether an existing branch will be modified by this task. |
void
|
setMode(GitBranchCreate.Mode mode)
Sets the tracking mode of the branch. |
void
|
setStartPoint(java.lang.String startPoint)
Sets the starting point of the branch. |
Methods inherited from class GitBase | |
---|---|
getGit, getRepoDir, setRepoPath |
Method Detail |
---|
public java.lang.String getBranchName()
public boolean getForce()
public GitBranchCreate.Mode getMode()
public java.lang.String getStartPoint()
public void setBranchName(java.lang.String branchName)
branchName
- the name of the branch
public void setForce(boolean force)
force
- true if existing branches
will be updated, false if the task should
fail if the branch exists
public void setMode(GitBranchCreate.Mode mode)
mode
- the tracking mode
public void setStartPoint(java.lang.String startPoint)
startPoint
- the start point of the branch
Groovy Documentation