public class ListBranchCommand extends GitCommand<List<Ref>>
Modifier and Type | Class and Description |
---|---|
static class |
ListBranchCommand.ListMode
The modes available for listing branches (corresponding to the -r and -a
options)
|
repo
Modifier | Constructor and Description |
---|---|
protected |
ListBranchCommand(Repository repo) |
Modifier and Type | Method and Description |
---|---|
List<Ref> |
call() |
ListBranchCommand |
setListMode(ListBranchCommand.ListMode listMode) |
checkCallable, getRepository, setCallable
protected ListBranchCommand(Repository repo)
repo
- public List<Ref> call() throws JGitInternalException
JGitInternalException
- upon internal failurepublic ListBranchCommand setListMode(ListBranchCommand.ListMode listMode)
listMode
- optional: corresponds to the -r/-a options; by default, only
local branches will be listedCopyright © 2012. All Rights Reserved.