Class GitBranchCommand
- java.lang.Object
-
- org.apache.maven.scm.command.AbstractCommand
-
- org.apache.maven.scm.command.branch.AbstractBranchCommand
-
- org.apache.maven.scm.provider.git.gitexe.command.branch.GitBranchCommand
-
- All Implemented Interfaces:
Command
,GitCommand
public class GitBranchCommand extends AbstractBranchCommand implements GitCommand
- Author:
- Mark Struberg
-
-
Constructor Summary
Constructors Constructor Description GitBranchCommand()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.codehaus.plexus.util.cli.Commandline
createCommandLine(GitScmProviderRepository repository, java.io.File workingDirectory, java.lang.String branch)
static org.codehaus.plexus.util.cli.Commandline
createPushCommandLine(GitScmProviderRepository repository, ScmFileSet fileSet, java.lang.String branch)
ScmResult
executeBranchCommand(ScmProviderRepository repo, ScmFileSet fileSet, java.lang.String branch, java.lang.String message)
static java.lang.String
getCurrentBranch(ScmLogger logger, GitScmProviderRepository repository, ScmFileSet fileSet)
Helper function to detect the current branch-
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
public ScmResult executeBranchCommand(ScmProviderRepository repo, ScmFileSet fileSet, java.lang.String branch, java.lang.String message) throws ScmException
- Specified by:
executeBranchCommand
in classAbstractBranchCommand
- Throws:
ScmException
-
createCommandLine
public static org.codehaus.plexus.util.cli.Commandline createCommandLine(GitScmProviderRepository repository, java.io.File workingDirectory, java.lang.String branch)
-
createPushCommandLine
public static org.codehaus.plexus.util.cli.Commandline createPushCommandLine(GitScmProviderRepository repository, ScmFileSet fileSet, java.lang.String branch) throws ScmException
- Throws:
ScmException
-
getCurrentBranch
public static java.lang.String getCurrentBranch(ScmLogger logger, GitScmProviderRepository repository, ScmFileSet fileSet) throws ScmException
Helper function to detect the current branch- Throws:
ScmException
-
-