public class SubmoduleSyncCommand extends GitCommand<Map<String,String>>
repo| Constructor and Description |
|---|
SubmoduleSyncCommand(Repository repo)
Constructor for SubmoduleSyncCommand.
|
| Modifier and Type | Method and Description |
|---|---|
SubmoduleSyncCommand |
addPath(String path)
Add repository-relative submodule path to synchronize
|
Map<String,String> |
call() |
protected String |
getHeadBranch(Repository subRepo)
Get branch that HEAD currently points to
|
checkCallable, getRepository, setCallablepublic SubmoduleSyncCommand(Repository repo)
repo - a Repository object.public SubmoduleSyncCommand addPath(String path)
path - (with / as separator)protected String getHeadBranch(Repository subRepo) throws IOException
subRepo - a Repository object.IOExceptionpublic Map<String,String> call() throws GitAPIException
Execute the command
Copyright © 2021 Eclipse JGit Project. All rights reserved.