public class GitBranchCommand extends AbstractBranchCommand implements GitCommand
| Constructor and Description |
|---|
GitBranchCommand() |
| Modifier and Type | Method and Description |
|---|---|
static org.codehaus.plexus.util.cli.Commandline |
createCommandLine(GitScmProviderRepository repository,
File workingDirectory,
String branch) |
static org.codehaus.plexus.util.cli.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 org.codehaus.plexus.util.cli.Commandline createCommandLine(GitScmProviderRepository repository, File workingDirectory, String branch)
public static org.codehaus.plexus.util.cli.Commandline createPushCommandLine(GitScmProviderRepository repository, ScmFileSet fileSet, String branch) throws ScmException
ScmExceptionpublic static String getCurrentBranch(ScmLogger logger, GitScmProviderRepository repository, ScmFileSet fileSet) throws ScmException
ScmExceptionCopyright © 2003–2021 The Apache Software Foundation. All rights reserved.