mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-06 23:28:51 +02:00
added branches command to repository service
This commit is contained in:
@@ -157,6 +157,25 @@ public final class RepositoryService implements Closeable
|
||||
repository, preProcessorUtil);
|
||||
}
|
||||
|
||||
/**
|
||||
* The branches command list all repository branches.
|
||||
*
|
||||
* @return instance of {@link BranchesCommandBuilder}
|
||||
* @throws CommandNotSupportedException if the command is not supported
|
||||
* by the implementation of the repository service provider.
|
||||
*/
|
||||
public BranchesCommandBuilder getBranchesCommand()
|
||||
{
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug("create branches command for repository {}",
|
||||
repository.getName());
|
||||
}
|
||||
|
||||
return new BranchesCommandBuilder(cacheManager,
|
||||
provider.getBranchesCommand(), repository);
|
||||
}
|
||||
|
||||
/**
|
||||
* The browse command allows browsing of a repository.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user