public class GitUpdateCommand extends AbstractUpdateCommand implements GitCommand
Constructor and Description |
---|
GitUpdateCommand() |
Modifier and Type | Method and Description |
---|---|
static 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 Commandline |
createLatestRevisionCommandLine(GitScmProviderRepository repository,
File workingDirectory,
ScmVersion scmVersion) |
protected UpdateScmResult |
executeUpdateCommand(ScmProviderRepository repo,
ScmFileSet fileSet,
ScmVersion scmVersion) |
protected ChangeLogCommand |
getChangeLogCommand() |
executeCommand
execute, getLogger, setLogger
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 Commandline createCommandLine(GitScmProviderRepository repository, File workingDirectory, ScmVersion scmVersion)
public static Commandline createLatestRevisionCommandLine(GitScmProviderRepository repository, File workingDirectory, ScmVersion scmVersion)
scmVersion
- a valid branch or null
if the master branch should be takenCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.