Class GitUpdateCommand
- java.lang.Object
- 
- org.apache.maven.scm.command.AbstractCommand
- 
- org.apache.maven.scm.command.update.AbstractUpdateCommand
- 
- org.apache.maven.scm.provider.git.gitexe.command.update.GitUpdateCommand
 
 
 
- 
- All Implemented Interfaces:
- Command,- GitCommand
 
 public class GitUpdateCommand extends AbstractUpdateCommand implements GitCommand - Since:
- 10 august 2008
- Author:
- Olivier Lamy, struberg
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.maven.scm.command.AbstractCommandlogger
 
- 
 - 
Constructor SummaryConstructors Constructor Description GitUpdateCommand()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.codehaus.plexus.util.cli.CommandlinecreateCommandLine(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.CommandlinecreateLatestRevisionCommandLine(GitScmProviderRepository repository, File workingDirectory, ScmVersion scmVersion)protected UpdateScmResultexecuteUpdateCommand(ScmProviderRepository repo, ScmFileSet fileSet, ScmVersion scmVersion)protected ChangeLogCommandgetChangeLogCommand()- 
Methods inherited from class org.apache.maven.scm.command.update.AbstractUpdateCommandexecuteCommand
 - 
Methods inherited from class org.apache.maven.scm.command.AbstractCommandexecute
 
- 
 
- 
- 
- 
Constructor Detail- 
GitUpdateCommandpublic GitUpdateCommand() 
 
- 
 - 
Method Detail- 
executeUpdateCommandprotected UpdateScmResult executeUpdateCommand(ScmProviderRepository repo, ScmFileSet fileSet, ScmVersion scmVersion) throws ScmException - Specified by:
- executeUpdateCommandin class- AbstractUpdateCommand
- Throws:
- ScmException
 
 - 
getChangeLogCommandprotected ChangeLogCommand getChangeLogCommand() - Specified by:
- getChangeLogCommandin class- AbstractUpdateCommand
 
 - 
createCommandLinepublic 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.
 - 
createLatestRevisionCommandLinepublic static org.codehaus.plexus.util.cli.Commandline createLatestRevisionCommandLine(GitScmProviderRepository repository, File workingDirectory, ScmVersion scmVersion) - Parameters:
- scmVersion- a valid branch or- nullif the master branch should be taken
- Returns:
- CommandLine for getting the latest commit on the given branch
 
 
- 
 
-