public class SubmoduleUpdateCommand extends TransportCommand<SubmoduleUpdateCommand,Collection<String>>
credentialsProvider, timeout, transportConfigCallback
repo
Constructor and Description |
---|
SubmoduleUpdateCommand(Repository repo) |
Modifier and Type | Method and Description |
---|---|
SubmoduleUpdateCommand |
addPath(String path)
Add repository-relative submodule path to initialize
|
Collection<String> |
call()
Execute the SubmoduleUpdateCommand command.
|
SubmoduleUpdateCommand |
setProgressMonitor(ProgressMonitor monitor)
The progress monitor associated with the clone operation.
|
SubmoduleUpdateCommand |
setStrategy(MergeStrategy strategy) |
configure, configure, self, setCredentialsProvider, setTimeout, setTransportConfigCallback
checkCallable, getRepository, setCallable
public SubmoduleUpdateCommand(Repository repo)
repo
- public SubmoduleUpdateCommand setProgressMonitor(ProgressMonitor monitor)
NullProgressMonitor
monitor
- NullProgressMonitor
public SubmoduleUpdateCommand addPath(String path)
path
- (with /
as separator)public Collection<String> call() throws InvalidConfigurationException, NoHeadException, ConcurrentRefUpdateException, CheckoutConflictException, InvalidMergeHeadsException, WrongRepositoryStateException, NoMessageException, NoHeadException, RefNotFoundException, GitAPIException
call
in interface Callable<Collection<String>>
call
in class GitCommand<Collection<String>>
ConcurrentRefUpdateException
CheckoutConflictException
InvalidMergeHeadsException
InvalidConfigurationException
NoHeadException
NoMessageException
RefNotFoundException
WrongRepositoryStateException
GitAPIException
public SubmoduleUpdateCommand setStrategy(MergeStrategy strategy)
strategy
- The merge strategy to use during this update operation.this
Copyright © 2017 Eclipse JGit Project. All rights reserved.