public class GitUpdateCommand extends AbstractUpdateCommand implements GitCommand
logger
Constructor and Description |
---|
GitUpdateCommand() |
Modifier and Type | Method and Description |
---|---|
static org.codehaus.plexus.util.cli.Commandline |
createCommandLine(GitScmProviderRepository repository,
File workingDirectory,
ScmVersion scmVersion)
create the command line for updating the current branch with the info from the foreign repository.
|
static org.codehaus.plexus.util.cli.Commandline |
createLatestRevisionCommandLine(GitScmProviderRepository repository,
File workingDirectory,
ScmVersion scmVersion) |
protected UpdateScmResult |
executeUpdateCommand(ScmProviderRepository repo,
ScmFileSet fileSet,
ScmVersion scmVersion) |
protected ChangeLogCommand |
getChangeLogCommand() |
executeCommand
execute
public GitUpdateCommand()
protected UpdateScmResult executeUpdateCommand(ScmProviderRepository repo, ScmFileSet fileSet, ScmVersion scmVersion) throws ScmException
executeUpdateCommand
in class AbstractUpdateCommand
ScmException
protected ChangeLogCommand getChangeLogCommand()
getChangeLogCommand
in class AbstractUpdateCommand
public static org.codehaus.plexus.util.cli.Commandline createCommandLine(GitScmProviderRepository repository, File workingDirectory, ScmVersion scmVersion)
public static org.codehaus.plexus.util.cli.Commandline createLatestRevisionCommandLine(GitScmProviderRepository repository, File workingDirectory, ScmVersion scmVersion)
scmVersion
- a valid branch or null
if the master branch should be takenCopyright © 2003–2024 The Apache Software Foundation. All rights reserved.