Package sonia.scm.repository.api
Class BranchesCommandBuilder
java.lang.Object
sonia.scm.repository.api.BranchesCommandBuilder
The branches command list all repository branches.
Samples:
Return all branches of a repository:
Samples:
Return all branches of a repository:
BranchesCommandBuilder branchesCommand = repositoryService.getBranchesCommand();
Branches branches = tagsCommand.getBranches();
- Since:
- 1.18
-
Method Summary
Modifier and TypeMethodDescriptionReturns all branches from the repository.setDisableCache(boolean disableCache) Disables the cache for tags.
-
Method Details
-
getBranches
Returns all branches from the repository.- Returns:
- branches from the repository
- Throws:
IOException
-
setDisableCache
Disables the cache for tags. This means that everyBranchis directly retrieved from theRepository. Note: Disabling the cache cost a lot of performance and could be much slower.- Parameters:
disableCache- true to disable the cache- Returns:
this
-