Package org.eclipse.jgit.api
Class SubmoduleSyncCommand
A class used to execute a submodule sync command.
This will set the remote URL in a submodule's repository to the current value
in the .gitmodules file.
- See Also:
-
Field Summary
FieldsFields inherited from class org.eclipse.jgit.api.GitCommand
repo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd repository-relative submodule path to synchronizecall()
protected String
getHeadBranch
(Repository subRepo) Get branch that HEAD currently points toMethods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
Field Details
-
paths
-
-
Constructor Details
-
SubmoduleSyncCommand
Constructor for SubmoduleSyncCommand.- Parameters:
repo
- aRepository
object.
-
-
Method Details
-
addPath
Add repository-relative submodule path to synchronize- Parameters:
path
- (with/
as separator)- Returns:
- this command
-
getHeadBranch
Get branch that HEAD currently points to- Parameters:
subRepo
- aRepository
object.- Returns:
- shortened branch name, null on failures
- Throws:
IOException
-
call
Execute the command
-