Class DfsRepository

    • Constructor Detail

      • DfsRepository

        protected DfsRepository​(DfsRepositoryBuilder builder)
        Initialize a DFS repository.
        Parameters:
        builder - description of the repository.
    • Method Detail

      • exists

        public boolean exists()
                       throws java.io.IOException
        Check if the repository already exists.
        Returns:
        true if the repository exists; false if it is new.
        Throws:
        java.io.IOException - the repository cannot be checked.
      • create

        public void create​(boolean bare)
                    throws java.io.IOException
        Description copied from class: Repository
        Create a new Git repository initializing the necessary files and directories.
        Specified by:
        create in class Repository
        Parameters:
        bare - if true, a bare repository (a repository without a working directory) is created.
        Throws:
        java.io.IOException - in case of IO problem
      • scanForRepoChanges

        public void scanForRepoChanges()
                                throws java.io.IOException
        Description copied from class: Repository
        Force a scan for changed refs.
        Specified by:
        scanForRepoChanges in class Repository
        Throws:
        java.io.IOException
      • getReflogReader

        public ReflogReader getReflogReader​(java.lang.String refName)
                                     throws java.io.IOException
        Specified by:
        getReflogReader in class Repository
        Returns:
        a ReflogReader for the supplied refname, or null if the named ref does not exist.
        Throws:
        java.io.IOException - the ref could not be accessed.