Groovy Documentation

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

java.lang.Object
  org.gradle.api.DefaultTask
      org.ajoberstar.gradle.git.tasks.GitBase
          org.ajoberstar.gradle.git.tasks.GitBranchList

public class GitBranchList
extends GitBase

Lists branches in a Git repository.

Authors:
Evgeny Shepelyuk
Since:
0.3.0


Nested Class Summary
static enum GitBranchList.BranchType

 
Method Summary
GitBranchList.BranchType getBranchType()

Gets the type of branches to retrieve.

java.util.List getBranches()

Gets the branches retrieved by the task.

Branch getWorkingBranch()

Gets the current working branch of this repository.

void setBranchType(GitBranchList.BranchType type)

Sets the type of branches to retrieve.

 
Methods inherited from class GitBase
getGit, getRepoDir, setRepoPath
 

Method Detail

getBranchType

public GitBranchList.BranchType getBranchType()
Gets the type of branches to retrieve.
Returns:
the type


getBranches

public java.util.List getBranches()
Gets the branches retrieved by the task.
throws:
IllegalStateException if the task has not executed yet
Returns:
list of branches


getWorkingBranch

public Branch getWorkingBranch()
Gets the current working branch of this repository.
Returns:
the working branch


setBranchType

public void setBranchType(GitBranchList.BranchType type)
Sets the type of branches to retrieve.
Parameters:
type


 

Groovy Documentation