public class ListBranchCommand extends GitCommand<java.util.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 |
|---|---|
java.util.List<Ref> |
call()
Executes the command
|
ListBranchCommand |
setListMode(ListBranchCommand.ListMode listMode) |
checkCallable, getRepository, setCallableprotected ListBranchCommand(Repository repo)
repo - public java.util.List<Ref> call() throws GitAPIException
GitCommandcall in interface java.util.concurrent.Callable<java.util.List<Ref>>call in class GitCommand<java.util.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 © 2012. All Rights Reserved.