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
-
Field Summary
FieldsFields inherited from class org.apache.maven.scm.command.AbstractCommand
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.codehaus.plexus.util.cli.CommandlinecreateCommandLine(GitScmProviderRepository repository, File workingDirectory, String branch) org.codehaus.plexus.util.cli.CommandlinecreatePushCommandLine(GitScmProviderRepository repository, ScmFileSet fileSet, String branch) executeBranchCommand(ScmProviderRepository repo, ScmFileSet fileSet, String branch, String message) static StringgetCurrentBranch(GitScmProviderRepository repository, ScmFileSet fileSet) Helper function to detect the current branch.Methods inherited from class org.apache.maven.scm.command.branch.AbstractBranchCommand
executeBranchCommand, executeCommandMethods inherited from class org.apache.maven.scm.command.AbstractCommand
execute
-
Field Details
-
environmentVariables
-
-
Constructor Details
-
GitBranchCommand
-
-
Method Details
-
executeBranchCommand
public ScmResult executeBranchCommand(ScmProviderRepository repo, ScmFileSet fileSet, String branch, String message) throws ScmException - Specified by:
executeBranchCommandin classAbstractBranchCommand- Throws:
ScmException
-
createCommandLine
public static org.codehaus.plexus.util.cli.Commandline createCommandLine(GitScmProviderRepository repository, File workingDirectory, String branch) -
createPushCommandLine
public org.codehaus.plexus.util.cli.Commandline createPushCommandLine(GitScmProviderRepository repository, ScmFileSet fileSet, String branch) -
getCurrentBranch
public static String getCurrentBranch(GitScmProviderRepository repository, ScmFileSet fileSet) throws ScmException Helper function to detect the current branch.- Throws:
ScmException
-