org.apache.maven.scm.provider.git.gitexe.command.branch
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
- Version:
- $Id: GitBranchCommand.java 1070251 2011-02-13 15:35:40Z struberg $
- Author:
- Mark Struberg
Fields inherited from interface org.apache.maven.scm.command.Command |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GitBranchCommand
public GitBranchCommand()
executeBranchCommand
public ScmResult executeBranchCommand(ScmProviderRepository repo,
ScmFileSet fileSet,
String branch,
String message)
throws ScmException
-
- Specified by:
executeBranchCommand
in class AbstractBranchCommand
- Throws:
ScmException
createCommandLine
public static Commandline createCommandLine(GitScmProviderRepository repository,
File workingDirectory,
String branch)
createPushCommandLine
public static Commandline createPushCommandLine(GitScmProviderRepository repository,
ScmFileSet fileSet,
String branch)
throws ScmException
- Throws:
ScmException
getCurrentBranch
public static String getCurrentBranch(ScmLogger logger,
GitScmProviderRepository repository,
ScmFileSet fileSet)
throws ScmException
- Helper function to detect the current branch
- Throws:
ScmException
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.