Package org.eclipse.jgit.api
Class SubmoduleStatusCommand
- java.lang.Object
-
- org.eclipse.jgit.api.GitCommand<Map<String,SubmoduleStatus>>
-
- org.eclipse.jgit.api.SubmoduleStatusCommand
-
- All Implemented Interfaces:
Callable<Map<String,SubmoduleStatus>>
public class SubmoduleStatusCommand extends GitCommand<Map<String,SubmoduleStatus>>
A class used to execute a submodule status command.- See Also:
- Git documentation about submodules
-
-
Field Summary
-
Fields inherited from class org.eclipse.jgit.api.GitCommand
repo
-
-
Constructor Summary
Constructors Constructor Description SubmoduleStatusCommand(Repository repo)
Constructor for SubmoduleStatusCommand.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubmoduleStatusCommand
addPath(String path)
Add repository-relative submodule path to limit status reporting toMap<String,SubmoduleStatus>
call()
-
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
-
-
-
Constructor Detail
-
SubmoduleStatusCommand
public SubmoduleStatusCommand(Repository repo)
Constructor for SubmoduleStatusCommand.- Parameters:
repo
- aRepository
object.
-
-
Method Detail
-
addPath
public SubmoduleStatusCommand addPath(String path)
Add repository-relative submodule path to limit status reporting to- Parameters:
path
- (with/
as separator)- Returns:
- this command
-
call
public Map<String,SubmoduleStatus> call() throws GitAPIException
Execute the command
- Specified by:
call
in interfaceCallable<Map<String,SubmoduleStatus>>
- Specified by:
call
in classGitCommand<Map<String,SubmoduleStatus>>
- Throws:
GitAPIException
-
-