org.eclipse.jgit.api
Class SubmoduleUpdateCommand
java.lang.Object
org.eclipse.jgit.api.GitCommand<Collection<String>>
org.eclipse.jgit.api.SubmoduleUpdateCommand
- All Implemented Interfaces:
- Callable<Collection<String>>
public class SubmoduleUpdateCommand
- extends GitCommand<Collection<String>>
A class used to execute a submodule update command.
- See Also:
- Git documentation about submodules
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubmoduleUpdateCommand
public SubmoduleUpdateCommand(Repository repo)
- Parameters:
repo -
setProgressMonitor
public SubmoduleUpdateCommand setProgressMonitor(ProgressMonitor monitor)
- The progress monitor associated with the clone operation. By default,
this is set to
NullProgressMonitor
- Parameters:
monitor -
- Returns:
- this command
- See Also:
NullProgressMonitor
setCredentialsProvider
public SubmoduleUpdateCommand setCredentialsProvider(CredentialsProvider credentialsProvider)
- Parameters:
credentialsProvider - the CredentialsProvider to use
- Returns:
- this command
addPath
public SubmoduleUpdateCommand addPath(String path)
- Add repository-relative submodule path to initialize
- Parameters:
path -
- Returns:
- this command
call
public Collection<String> call()
throws JGitInternalException
- Throws:
JGitInternalException
Copyright © 2011. All Rights Reserved.