Package com.google.gerrit.server.git
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
ConstructorsConstructorDescriptionFileKey(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 TypeMethodDescriptionlenient(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.Repositoryopen(boolean mustExist) Methods inherited from class org.eclipse.jgit.lib.RepositoryCache.FileKey
equals, exact, getFile, hashCode, isGitRepository, lenient, resolve, toString
-
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
- Specified by:
openin interfaceorg.eclipse.jgit.lib.RepositoryCache.Key- Overrides:
openin classorg.eclipse.jgit.lib.RepositoryCache.FileKey- Throws:
IOException
-