public class SubmoduleAddCommand extends TransportCommand<SubmoduleAddCommand,Repository>
credentialsProvider, timeout, transportConfigCallback
repo
Constructor and Description |
---|
SubmoduleAddCommand(Repository repo) |
Modifier and Type | Method and Description |
---|---|
Repository |
call()
Executes the command
|
SubmoduleAddCommand |
setPath(String path)
Set repository-relative path of submodule
|
SubmoduleAddCommand |
setProgressMonitor(ProgressMonitor monitor)
The progress monitor associated with the clone operation.
|
SubmoduleAddCommand |
setURI(String uri)
Set URI to clone submodule from
|
protected boolean |
submoduleExists()
Is the configured already a submodule in the index?
|
configure, configure, self, setCredentialsProvider, setTimeout, setTransportConfigCallback
checkCallable, getRepository, setCallable
public SubmoduleAddCommand(Repository repo)
repo
- public SubmoduleAddCommand setPath(String path)
path
- (with /
as separator)public SubmoduleAddCommand setURI(String uri)
uri
- public SubmoduleAddCommand setProgressMonitor(ProgressMonitor monitor)
NullProgressMonitor
monitor
- NullProgressMonitor
protected boolean submoduleExists() throws IOException
IOException
public Repository call() throws GitAPIException
GitCommand
call
in interface Callable<Repository>
call
in class GitCommand<Repository>
GitAPIException
- or subclass thereof when an error occursCopyright © 2014. All rights reserved.