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