Class DynamicRefDbRepository

java.lang.Object
org.eclipse.jgit.lib.Repository
org.eclipse.jgit.internal.storage.file.FileRepository
com.google.gerrit.server.git.DynamicRefDbRepository
All Implemented Interfaces:
AutoCloseable

public class DynamicRefDbRepository extends org.eclipse.jgit.internal.storage.file.FileRepository
A FileRepository with a dynamic RefDatabase supplied via a BiFunction.
  • Nested Class Summary Link icon

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    DynamicRefDbRepository(File path, BiFunction<File,org.eclipse.jgit.lib.RefDatabase,org.eclipse.jgit.lib.RefDatabase> refDatabaseSupplier)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    org.eclipse.jgit.lib.RefDatabase
     

    Methods inherited from class org.eclipse.jgit.internal.storage.file.FileRepository Link icon

    autoGC, convertRefStorage, create, createAttributesNodeProvider, getAdditionalHaves, getConfig, getGitwebDescription, getIdentifier, getObjectDatabase, getObjectsDirectory, getReflogReader, getReflogReader, notifyIndexChanged, openPack, scanForRepoChanges, setGitwebDescription

    Methods inherited from class org.eclipse.jgit.lib.Repository Link icon

    close, create, doClose, exactRef, findRef, fireEvent, getAllRefs, getAllRefsByPeeledObjectId, getBranch, getDirectory, getFS, getFullBranch, getGlobalListenerList, getIndexFile, getInitialBranch, getListenerList, getRemoteName, getRemoteNames, getRepositoryState, getTags, getWorkTree, hasObject, incrementOpen, isBare, isValidRefName, lockDirCache, newObjectInserter, newObjectReader, normalizeBranchName, open, open, parseCommit, peel, readCherryPickHead, readCommitEditMsg, readDirCache, readMergeCommitMsg, readMergeHeads, readOrigHead, readRebaseTodo, readRevertHead, readSquashCommitMsg, renameRef, resolve, shortenRefName, shortenRemoteBranchName, simplify, stripWorkDir, toString, updateRef, updateRef, writeCherryPickHead, writeCommitEditMsg, writeMergeCommitMsg, writeMergeHeads, writeOrigHead, writeRebaseTodoFile, writeRevertHead, writeSquashCommitMsg

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details Link icon

    • DynamicRefDbRepository Link icon

      public DynamicRefDbRepository(File path, BiFunction<File,org.eclipse.jgit.lib.RefDatabase,org.eclipse.jgit.lib.RefDatabase> refDatabaseSupplier) throws IOException
      Throws:
      IOException
  • Method Details Link icon

    • getRefDatabase Link icon

      public org.eclipse.jgit.lib.RefDatabase getRefDatabase()
      Overrides:
      getRefDatabase in class org.eclipse.jgit.internal.storage.file.FileRepository