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()
Executes the command
|
ListBranchCommand |
setListMode(ListBranchCommand.ListMode listMode) |
checkCallable, getRepository, setCallableprotected ListBranchCommand(Repository repo)
repo - public List<Ref> call() throws GitAPIException
GitCommandcall in interface Callable<List<Ref>>call in class GitCommand<List<Ref>>GitAPIException - or subclass thereof when an error occurspublic ListBranchCommand setListMode(ListBranchCommand.ListMode listMode)
listMode - optional: corresponds to the -r/-a options; by default, only
local branches will be listedCopyright © 2013. All rights reserved.