public class SubmoduleUpdateCommand extends TransportCommand<SubmoduleUpdateCommand,Collection<String>>
credentialsProvider, timeout, transportConfigCallback
repo
Constructor and Description |
---|
SubmoduleUpdateCommand(Repository repo)
Constructor for SubmoduleUpdateCommand.
|
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 |
setCallback(CloneCommand.Callback callback)
Set status callback for submodule clone operation.
|
SubmoduleUpdateCommand |
setFetch(boolean fetch)
Whether to fetch the submodules before we update them.
|
SubmoduleUpdateCommand |
setFetchCallback(FetchCommand.Callback callback)
Set status callback for submodule fetch operation.
|
SubmoduleUpdateCommand |
setProgressMonitor(ProgressMonitor monitor)
The progress monitor associated with the clone operation.
|
SubmoduleUpdateCommand |
setStrategy(MergeStrategy strategy)
Setter for the field
strategy . |
configure, configure, self, setCredentialsProvider, setTimeout, setTransportConfigCallback
checkCallable, getRepository, setCallable
public SubmoduleUpdateCommand(Repository repo)
Constructor for SubmoduleUpdateCommand.
repo
- a Repository
object.public SubmoduleUpdateCommand setProgressMonitor(ProgressMonitor monitor)
NullProgressMonitor
monitor
- a ProgressMonitor
object.NullProgressMonitor
public SubmoduleUpdateCommand setFetch(boolean fetch)
false
fetch
- whether to fetch the submodules before we update thempublic SubmoduleUpdateCommand addPath(String path)
path
- (with /
as separator)public Collection<String> call() throws InvalidConfigurationException, NoHeadException, ConcurrentRefUpdateException, CheckoutConflictException, InvalidMergeHeadsException, WrongRepositoryStateException, NoMessageException, NoHeadException, RefNotFoundException, GitAPIException
Execute the command Execute the SubmoduleUpdateCommand command.
call
in interface Callable<Collection<String>>
call
in class GitCommand<Collection<String>>
InvalidConfigurationException
NoHeadException
ConcurrentRefUpdateException
CheckoutConflictException
InvalidMergeHeadsException
WrongRepositoryStateException
NoMessageException
RefNotFoundException
GitAPIException
public SubmoduleUpdateCommand setStrategy(MergeStrategy strategy)
strategy
.strategy
- The merge strategy to use during this update operation.this
public SubmoduleUpdateCommand setCallback(CloneCommand.Callback callback)
callback
- the callbackthis
public SubmoduleUpdateCommand setFetchCallback(FetchCommand.Callback callback)
callback
- the callbackthis
Copyright © 2019 Eclipse JGit Project. All rights reserved.