public class GitRepositoryManagerOnInit extends java.lang.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.
|
java.util.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, java.io.IOException
GitRepositoryManager
openRepository
in interface GitRepositoryManager
name
- 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.java.io.IOException
- the name cannot be read as a repository.public org.eclipse.jgit.lib.Repository createRepository(Project.NameKey name)
GitRepositoryManager
createRepository
in interface GitRepositoryManager
name
- the repository name, relative to the base directory.close()
when done to decrement
the resource handle.public java.util.SortedSet<Project.NameKey> list()
list
in interface GitRepositoryManager