org.eclipse.jgit.api
Class SubmoduleUpdateCommand
java.lang.Object
org.eclipse.jgit.api.GitCommand<T>
org.eclipse.jgit.api.TransportCommand<SubmoduleUpdateCommand,java.util.Collection<java.lang.String>>
org.eclipse.jgit.api.SubmoduleUpdateCommand
- All Implemented Interfaces:
- java.util.concurrent.Callable<java.util.Collection<java.lang.String>>
public class SubmoduleUpdateCommand
- extends TransportCommand<SubmoduleUpdateCommand,java.util.Collection<java.lang.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
addPath
public SubmoduleUpdateCommand addPath(java.lang.String path)
- Add repository-relative submodule path to initialize
- Parameters:
path
-
- Returns:
- this command
call
public java.util.Collection<java.lang.String> call()
throws InvalidConfigurationException,
NoHeadException,
ConcurrentRefUpdateException,
CheckoutConflictException,
InvalidMergeHeadsException,
WrongRepositoryStateException,
NoMessageException,
NoHeadException,
RefNotFoundException,
GitAPIException
- Execute the SubmoduleUpdateCommand command.
- Specified by:
call
in interface java.util.concurrent.Callable<java.util.Collection<java.lang.String>>
- Specified by:
call
in class GitCommand<java.util.Collection<java.lang.String>>
- Returns:
- a collection of updated submodule paths
- Throws:
ConcurrentRefUpdateException
CheckoutConflictException
InvalidMergeHeadsException
InvalidConfigurationException
NoHeadException
NoMessageException
RefNotFoundException
WrongRepositoryStateException
GitAPIException
Copyright © 2013. All Rights Reserved.