Class DynamicRefDbRepository.FileKey

java.lang.Object
org.eclipse.jgit.lib.RepositoryCache.FileKey
com.google.gerrit.server.git.DynamicRefDbRepository.FileKey
All Implemented Interfaces:
org.eclipse.jgit.lib.RepositoryCache.Key
Enclosing class:
DynamicRefDbRepository

public static class DynamicRefDbRepository.FileKey extends org.eclipse.jgit.lib.RepositoryCache.FileKey
  • Constructor Summary

    Constructors
    Constructor
    Description
    FileKey(File directory, org.eclipse.jgit.util.FS fs, BiFunction<File,org.eclipse.jgit.lib.RefDatabase,org.eclipse.jgit.lib.RefDatabase> refDatabaseSupplier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    lenient(File directory, org.eclipse.jgit.util.FS fs, BiFunction<File,org.eclipse.jgit.lib.RefDatabase,org.eclipse.jgit.lib.RefDatabase> refDatabaseSupplier)
     
    org.eclipse.jgit.lib.Repository
    open(boolean mustExist)
     

    Methods inherited from class org.eclipse.jgit.lib.RepositoryCache.FileKey

    equals, exact, getFile, hashCode, isGitRepository, lenient, resolve, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FileKey

      public FileKey(File directory, org.eclipse.jgit.util.FS fs, BiFunction<File,org.eclipse.jgit.lib.RefDatabase,org.eclipse.jgit.lib.RefDatabase> refDatabaseSupplier)
      Parameters:
      directory - exact location of the repository.
      fs - the file system abstraction which will be necessary to perform certain file system operations.
  • Method Details

    • lenient

      public static DynamicRefDbRepository.FileKey lenient(File directory, org.eclipse.jgit.util.FS fs, BiFunction<File,org.eclipse.jgit.lib.RefDatabase,org.eclipse.jgit.lib.RefDatabase> refDatabaseSupplier)
    • open

      public org.eclipse.jgit.lib.Repository open(boolean mustExist) throws IOException
      Specified by:
      open in interface org.eclipse.jgit.lib.RepositoryCache.Key
      Overrides:
      open in class org.eclipse.jgit.lib.RepositoryCache.FileKey
      Throws:
      IOException