In case HEAD is detached (it points directly to a commit), it is also returned in the results.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | ListBranchCommand.
The modes available for listing branches (corresponding to the -r and -a options) |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private ListBranchCommand. |
| Access | Constructor and Description |
|---|---|
| protected | ListBranchCommand(Repository
a repo)org. object.Constructor for ListBranchCommand. |
| Modifier and Type | Method and Description |
|---|---|
| public List | call()
Implements abstract org. Implements java. Computes a result, or throws an exception if unable to do so. |
| private Collection | |
| public ListBranchCommand | Returns: this instancea commit ID or ref name containsCommitish)If this is set, only the branches that contain the specified commit-ish as an ancestor are returned. |
| public ListBranchCommand | Returns: this instanceoptional: corresponds to the -r/-a options; by default, only
local branches will be listed listModeSet the list mode |
| containsCommitish | back to summary |
|---|---|
| private String containsCommitish | |
| listMode | back to summary |
|---|---|
| private ListBranchCommand. | |
| ListBranchCommand | back to summary |
|---|---|
| protected ListBranchCommand(Repository repo) Constructor for ListBranchCommand.
| |
| call | back to summary |
|---|---|
| public List Implements abstract org. Implements java. Doc from org. Computes a result, or throws an exception if unable to do so. Execute the command
| |
| filterRefs | back to summary |
|---|---|
| private Collection | |
| setContains | back to summary |
|---|---|
| public ListBranchCommand setContains(String containsCommitish) If this is set, only the branches that contain the specified commit-ish as an ancestor are returned.
| |
| setListMode | back to summary |
|---|---|
| public ListBranchCommand setListMode(ListBranchCommand. Set the list mode
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ListBranchCommand. | ALL
Corresponds to the -a option (all branches) |
| public static final ListBranchCommand. | REMOTE
Corresponds to the -r option (remote branches only) |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ListBranchCommand. | |
| public static ListBranchCommand. |
| ALL | back to summary |
|---|---|
| public static final ListBranchCommand. Corresponds to the -a option (all branches) | |
| REMOTE | back to summary |
|---|---|
| public static final ListBranchCommand. Corresponds to the -r option (remote branches only) | |
| ListMode | back to summary |
|---|---|
| private ListMode() | |
| valueOf | back to summary |
|---|---|
| public static ListBranchCommand. | |
| values | back to summary |
|---|---|
| public static ListBranchCommand. | |