public class SubmoduleUpdateCommand extends TransportCommand<SubmoduleUpdateCommand,Collection<String>>
credentialsProvider, timeout, transportConfigCallbackrepo| 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, setTransportConfigCallbackcheckCallable, getRepository, setCallablepublic SubmoduleUpdateCommand(Repository repo)
Constructor for SubmoduleUpdateCommand.
repo - a Repository object.public SubmoduleUpdateCommand setProgressMonitor(ProgressMonitor monitor)
NullProgressMonitormonitor - a ProgressMonitor object.NullProgressMonitorpublic SubmoduleUpdateCommand setFetch(boolean fetch)
falsefetch - 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>>InvalidConfigurationExceptionNoHeadExceptionConcurrentRefUpdateExceptionCheckoutConflictExceptionInvalidMergeHeadsExceptionWrongRepositoryStateExceptionNoMessageExceptionRefNotFoundExceptionGitAPIExceptionpublic SubmoduleUpdateCommand setStrategy(MergeStrategy strategy)
strategy.strategy - The merge strategy to use during this update operation.thispublic SubmoduleUpdateCommand setCallback(CloneCommand.Callback callback)
callback - the callbackthispublic SubmoduleUpdateCommand setFetchCallback(FetchCommand.Callback callback)
callback - the callbackthisCopyright © 2018 Eclipse JGit Project. All rights reserved.