Interface GitRepositoryManager

    • Method Detail

      • openRepository

        org.eclipse.jgit.lib.Repository openRepository​(Project.NameKey name)
                                                throws org.eclipse.jgit.errors.RepositoryNotFoundException,
                                                       IOException
        Get (or open) a repository by name.
        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

        org.eclipse.jgit.lib.Repository createRepository​(Project.NameKey name)
                                                  throws RepositoryCaseMismatchException,
                                                         org.eclipse.jgit.errors.RepositoryNotFoundException,
                                                         IOException
        Create (and open) a repository by name.
        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:
        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.