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
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.maven.scm.command.AbstractCommandlogger
 
- 
 - 
Constructor SummaryConstructors Constructor Description GitBranchCommand(Map<String,String> environmentVariables)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.codehaus.plexus.util.cli.CommandlinecreateCommandLine(GitScmProviderRepository repository, File workingDirectory, String branch)org.codehaus.plexus.util.cli.CommandlinecreatePushCommandLine(GitScmProviderRepository repository, ScmFileSet fileSet, String branch)ScmResultexecuteBranchCommand(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.AbstractBranchCommandexecuteBranchCommand, executeCommand
 - 
Methods inherited from class org.apache.maven.scm.command.AbstractCommandexecute
 
- 
 
- 
- 
- 
Constructor Detail- 
GitBranchCommandpublic GitBranchCommand(Map<String,String> environmentVariables) 
 
- 
 - 
Method Detail- 
executeBranchCommandpublic ScmResult executeBranchCommand(ScmProviderRepository repo, ScmFileSet fileSet, String branch, String message) throws ScmException - Specified by:
- executeBranchCommandin class- AbstractBranchCommand
- Throws:
- ScmException
 
 - 
createCommandLinepublic static org.codehaus.plexus.util.cli.Commandline createCommandLine(GitScmProviderRepository repository, File workingDirectory, String branch) 
 - 
createPushCommandLinepublic org.codehaus.plexus.util.cli.Commandline createPushCommandLine(GitScmProviderRepository repository, ScmFileSet fileSet, String branch) 
 - 
getCurrentBranchpublic static String getCurrentBranch(GitScmProviderRepository repository, ScmFileSet fileSet) throws ScmException Helper function to detect the current branch.- Throws:
- ScmException
 
 
- 
 
-