Groovy Documentation

org.ajoberstar.gradle.git.tasks
[Java] Class GitBranchCreate

java.lang.Object
  org.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.

Authors:
Evgeny Shepelyuk
Since:
0.3.0


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

getBranchName

public java.lang.String getBranchName()
Gets the name of the branch to create or update.
Returns:
branchName of the branch


getForce

public boolean getForce()
Gets whether an existing branch will be modified by this task.
Returns:
whether to force changes to existing branches


getMode

public GitBranchCreate.Mode getMode()
Gets the tracking mode of the branch.
Returns:
the tracking mode


getStartPoint

public java.lang.String getStartPoint()
Gets the starting point of the branch.
Returns:
the starting point of the branch


setBranchName

public void setBranchName(java.lang.String branchName)
Sets the name of the branch to create or update.
Parameters:
branchName - the name of the branch


setForce

public void setForce(boolean force)
Sets whether an existing branch will be modified by this task.
Parameters:
force - true if existing branches will be updated, false if the task should fail if the branch exists


setMode

public void setMode(GitBranchCreate.Mode mode)
Sets the tracking mode of the branch.
Parameters:
mode - the tracking mode


setStartPoint

public void setStartPoint(java.lang.String startPoint)
Sets the starting point of the branch.
Parameters:
startPoint - the start point of the branch


 

Groovy Documentation