public class GitBranchCommand extends AbstractBranchCommand implements GitCommand
logger
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(GitScmProviderRepository repository,
ScmFileSet fileSet)
Helper function to detect the current branch
|
executeBranchCommand, executeCommand
execute
public GitBranchCommand()
public ScmResult executeBranchCommand(ScmProviderRepository repo, ScmFileSet fileSet, String branch, String message) throws ScmException
executeBranchCommand
in class AbstractBranchCommand
ScmException
public 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
ScmException
public static String getCurrentBranch(GitScmProviderRepository repository, ScmFileSet fileSet) throws ScmException
ScmException
Copyright © 2003–2024 The Apache Software Foundation. All rights reserved.