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
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
org.eclipse.jgit.lib.Repository
open(boolean mustExist)
-
-
-
Constructor Detail
-
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 Detail
-
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 interfaceorg.eclipse.jgit.lib.RepositoryCache.Key
- Overrides:
open
in classorg.eclipse.jgit.lib.RepositoryCache.FileKey
- Throws:
IOException
-
-