added branches command to repository service

This commit is contained in:
Sebastian Sdorra
2012-07-10 20:55:06 +02:00
parent 8912ba8c00
commit 817d3e6750

View File

@@ -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.
*