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, executeCommand
execute, getLogger, setLogger
public GitBranchCommand()
public ScmResult executeBranchCommand(ScmProviderRepository repo, ScmFileSet fileSet, String branch, String message) throws ScmException
executeBranchCommand
in class AbstractBranchCommand
ScmException
public static Commandline createCommandLine(GitScmProviderRepository repository, File workingDirectory, String branch)
public static Commandline createPushCommandLine(GitScmProviderRepository repository, ScmFileSet fileSet, String branch) throws ScmException
ScmException
public static String getCurrentBranch(ScmLogger logger, GitScmProviderRepository repository, ScmFileSet fileSet) throws ScmException
ScmException
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.