Class PerThreadRefDbCache


  • public class PerThreadRefDbCache
    extends Object
    A per request thread cache of RefDatabases by directory (Project).
    • Constructor Detail

      • PerThreadRefDbCache

        public PerThreadRefDbCache()
    • Method Detail

      • getRefDatabase

        public static org.eclipse.jgit.lib.RefDatabase getRefDatabase​(File path,
                                                                      org.eclipse.jgit.lib.RefDatabase refDb)
      • computeIfAbsent

        public org.eclipse.jgit.lib.RefDatabase computeIfAbsent​(File path,
                                                                Function<? super File,​? extends org.eclipse.jgit.lib.RefDatabase> mappingFunction)