Package org.eclipse.jgit.api
Class SubmoduleInitCommand
- All Implemented Interfaces:
Callable<Collection<String>>
A class used to execute a submodule init command.
This will copy the 'url' and 'update' fields from the working tree
.gitmodules file to a repository's config file for each submodule not
currently present in the repository's config file.
- See Also:
-
Field Summary
FieldsFields inherited from class org.eclipse.jgit.api.GitCommand
repo
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
Field Details
-
paths
-
-
Constructor Details
-
SubmoduleInitCommand
Constructor for SubmoduleInitCommand.- Parameters:
repo
- aRepository
object.
-
-
Method Details
-
addPath
Add repository-relative submodule path to initialize- Parameters:
path
- (with/
as separator)- Returns:
- this command
-
call
Execute the command
- Specified by:
call
in interfaceCallable<Collection<String>>
- Specified by:
call
in classGitCommand<Collection<String>>
- Throws:
GitAPIException
-