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
- Since:
- 10 august 2008
- Author:
- Olivier Lamy, struberg
-
Field Summary
Fields inherited from class org.apache.maven.scm.command.AbstractCommand
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
Methods inherited from class org.apache.maven.scm.command.update.AbstractUpdateCommand
executeCommand
Methods inherited from class org.apache.maven.scm.command.AbstractCommand
execute
-
Constructor Details
-
GitUpdateCommand
public GitUpdateCommand()
-
-
Method Details
-
executeUpdateCommand
protected UpdateScmResult executeUpdateCommand(ScmProviderRepository repo, ScmFileSet fileSet, ScmVersion scmVersion) throws ScmException - Specified by:
executeUpdateCommand
in classAbstractUpdateCommand
- Throws:
ScmException
-
getChangeLogCommand
- Specified by:
getChangeLogCommand
in classAbstractUpdateCommand
-
createCommandLine
public 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. -
createLatestRevisionCommandLine
public static org.codehaus.plexus.util.cli.Commandline createLatestRevisionCommandLine(GitScmProviderRepository repository, File workingDirectory, ScmVersion scmVersion) - Parameters:
scmVersion
- a valid branch ornull
if the master branch should be taken- Returns:
- CommandLine for getting the latest commit on the given branch
-