Package com.google.gerrit.pgm.init.api
Class GitRepositoryManagerOnInit
java.lang.Object
com.google.gerrit.pgm.init.api.GitRepositoryManagerOnInit
- All Implemented Interfaces:
GitRepositoryManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.gerrit.server.git.GitRepositoryManager
GitRepositoryManager.Status
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jgit.lib.Repository
Create (and open) a repository by name.GetGitRepositoryManager.Status
of the repository by name.list()
Returns set of all known projects, sorted by natural NameKey order.org.eclipse.jgit.lib.Repository
Get (or open) a repository by name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.gerrit.server.git.GitRepositoryManager
canPerformGC
-
Method Details
-
getRepositoryStatus
Description copied from interface:GitRepositoryManager
GetGitRepositoryManager.Status
of the repository by name.- Specified by:
getRepositoryStatus
in interfaceGitRepositoryManager
-
openRepository
public org.eclipse.jgit.lib.Repository openRepository(Project.NameKey name) throws org.eclipse.jgit.errors.RepositoryNotFoundException, IOException Description copied from interface:GitRepositoryManager
Get (or open) a repository by name.- Specified by:
openRepository
in interfaceGitRepositoryManager
- Parameters:
name
- the repository name, relative to the base directory.- Returns:
- the cached Repository instance. Caller must call
close()
when done to decrement the resource handle. - Throws:
org.eclipse.jgit.errors.RepositoryNotFoundException
- the name does not denote an existing repository.IOException
- the name cannot be read as a repository.
-
createRepository
Description copied from interface:GitRepositoryManager
Create (and open) a repository by name.- Specified by:
createRepository
in interfaceGitRepositoryManager
- Parameters:
name
- the repository name, relative to the base directory.- Returns:
- the cached Repository instance. Caller must call
close()
when done to decrement the resource handle.
-
list
Description copied from interface:GitRepositoryManager
Returns set of all known projects, sorted by natural NameKey order.- Specified by:
list
in interfaceGitRepositoryManager
-