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, setCallable
public SubmoduleSyncCommand(Repository repo)
repo
- public SubmoduleSyncCommand addPath(String path)
path
- (with /
as separator)protected String getHeadBranch(Repository subRepo) throws IOException
subRepo
- IOException
public Map<String,String> call() throws GitAPIException
GitCommand
Copyright © 2018. All rights reserved.