Class JGitBranchCommand
- java.lang.Object
-
- org.apache.maven.scm.command.AbstractCommand
-
- org.apache.maven.scm.command.branch.AbstractBranchCommand
-
- org.apache.maven.scm.provider.git.jgit.command.branch.JGitBranchCommand
-
- All Implemented Interfaces:
Command
,GitCommand
public class JGitBranchCommand extends AbstractBranchCommand implements GitCommand
- Since:
- 1.9
-
-
Constructor Summary
Constructors Constructor Description JGitBranchCommand()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ScmResult
executeBranchCommand(ScmProviderRepository repo, ScmFileSet fileSet, java.lang.String branch, java.lang.String message)
static java.util.Set<java.lang.String>
getShortLocalBranchNames(org.eclipse.jgit.api.Git git)
gets a set of names of the available branches in the given repo-
Methods inherited from class org.apache.maven.scm.command.branch.AbstractBranchCommand
executeBranchCommand, executeCommand
-
Methods inherited from class org.apache.maven.scm.command.AbstractCommand
execute, getLogger, setLogger
-
-
-
-
Method Detail
-
executeBranchCommand
protected ScmResult executeBranchCommand(ScmProviderRepository repo, ScmFileSet fileSet, java.lang.String branch, java.lang.String message) throws ScmException
- Specified by:
executeBranchCommand
in classAbstractBranchCommand
- Throws:
ScmException
-
getShortLocalBranchNames
public static java.util.Set<java.lang.String> getShortLocalBranchNames(org.eclipse.jgit.api.Git git) throws org.eclipse.jgit.api.errors.GitAPIException
gets a set of names of the available branches in the given repo- Parameters:
git
- the repo to list the branches for- Returns:
- set of short branch names
- Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
-