public interface GitRepositoryManager
 Implementations of this interface should be a Singleton and
 registered in Guice so they are globally available within the server
 environment.
| Modifier and Type | Method and Description | 
|---|---|
org.eclipse.jgit.lib.Repository | 
createRepository(com.google.gerrit.reviewdb.client.Project.NameKey name)
Create (and open) a repository by name. 
 | 
String | 
getProjectDescription(com.google.gerrit.reviewdb.client.Project.NameKey name)
Read the  
GIT_DIR/description file for gitweb. | 
SortedSet<com.google.gerrit.reviewdb.client.Project.NameKey> | 
list()  | 
org.eclipse.jgit.lib.Repository | 
openRepository(com.google.gerrit.reviewdb.client.Project.NameKey name)
Get (or open) a repository by name. 
 | 
void | 
setProjectDescription(com.google.gerrit.reviewdb.client.Project.NameKey name,
                     String description)
Set the  
GIT_DIR/description file for gitweb. | 
org.eclipse.jgit.lib.Repository openRepository(com.google.gerrit.reviewdb.client.Project.NameKey name)
                                               throws org.eclipse.jgit.errors.RepositoryNotFoundException,
                                                      IOException
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.IOException - the name cannot be read as a repository.org.eclipse.jgit.lib.Repository createRepository(com.google.gerrit.reviewdb.client.Project.NameKey name)
                                                 throws RepositoryCaseMismatchException,
                                                        org.eclipse.jgit.errors.RepositoryNotFoundException,
                                                        IOException
name - the repository name, relative to the base directory.close()
         when done to decrement the resource handle.RepositoryCaseMismatchException - the name collides with an existing
         repository name, but only in case of a character within the name.org.eclipse.jgit.errors.RepositoryNotFoundException - the name is invalid.IOException - the repository cannot be created.SortedSet<com.google.gerrit.reviewdb.client.Project.NameKey> list()
String getProjectDescription(com.google.gerrit.reviewdb.client.Project.NameKey name) throws org.eclipse.jgit.errors.RepositoryNotFoundException, IOException
GIT_DIR/description file for gitweb.
 NB: This code should really be in JGit, as a member of the Repository object. Until it moves there, its here.
name - the repository name, relative to the base directory.org.eclipse.jgit.errors.RepositoryNotFoundException - the named repository does not exist.IOException - the description file exists, but is not readable by
         this process.void setProjectDescription(com.google.gerrit.reviewdb.client.Project.NameKey name,
                         String description)
GIT_DIR/description file for gitweb.
 NB: This code should really be in JGit, as a member of the Repository object. Until it moves there, its here.
name - the repository name, relative to the base directory.description - new description text for the repository.