public class GitBranchCommand extends AbstractBranchCommand implements GitCommand
| Constructor and Description | 
|---|
GitBranchCommand()  | 
| Modifier and Type | Method and Description | 
|---|---|
static Commandline | 
createCommandLine(GitScmProviderRepository repository,
                                  File workingDirectory,
                                  String branch)  | 
static Commandline | 
createPushCommandLine(GitScmProviderRepository repository,
                                          ScmFileSet fileSet,
                                          String branch)  | 
ScmResult | 
executeBranchCommand(ScmProviderRepository repo,
                                        ScmFileSet fileSet,
                                        String branch,
                                        String message) | 
static String | 
getCurrentBranch(ScmLogger logger,
                                GitScmProviderRepository repository,
                                ScmFileSet fileSet)
Helper function to detect the current branch 
 | 
executeBranchCommand, executeCommandexecute, getLogger, setLoggerpublic GitBranchCommand()
public ScmResult executeBranchCommand(ScmProviderRepository repo, ScmFileSet fileSet, String branch, String message) throws ScmException
executeBranchCommand in class AbstractBranchCommandScmExceptionpublic static Commandline createCommandLine(GitScmProviderRepository repository, File workingDirectory, String branch)
public static Commandline createPushCommandLine(GitScmProviderRepository repository, ScmFileSet fileSet, String branch) throws ScmException
ScmExceptionpublic static String getCurrentBranch(ScmLogger logger, GitScmProviderRepository repository, ScmFileSet fileSet) throws ScmException
ScmExceptionCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.