public class GitRepositoryManagerOnInit extends Object implements GitRepositoryManager
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.lib.Repository |
createRepository(Project.NameKey name)
Create (and open) a repository by name.
|
SortedSet<Project.NameKey> |
list() |
org.eclipse.jgit.lib.Repository |
openRepository(Project.NameKey name)
Get (or open) a repository by name.
|
public org.eclipse.jgit.lib.Repository openRepository(Project.NameKey name) throws org.eclipse.jgit.errors.RepositoryNotFoundException, IOException
GitRepositoryManageropenRepository in interface GitRepositoryManagername - the repository name, relative to the base directory.close() when done to decrement
the resource handle.org.eclipse.jgit.errors.RepositoryNotFoundException - the name does not denote an existing repository.IOException - the name cannot be read as a repository.public org.eclipse.jgit.lib.Repository createRepository(Project.NameKey name)
GitRepositoryManagercreateRepository in interface GitRepositoryManagername - the repository name, relative to the base directory.close() when done to decrement
the resource handle.public SortedSet<Project.NameKey> list()
list in interface GitRepositoryManager