public class SubmoduleSyncCommand extends GitCommand<Map<String,String>>
repo
Constructor and Description |
---|
SubmoduleSyncCommand(Repository repo) |
Modifier and Type | Method and 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 © 2015 Eclipse JGit Project. All rights reserved.