]> source.dussan.org Git - jgit.git/commit
Introduce RefDatabase#hasFastTipsWithSha1 43/152843/13
authorHan-Wen Nienhuys <hanwen@google.com>
Mon, 18 Nov 2019 00:29:16 +0000 (16:29 -0800)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 4 Dec 2019 22:35:32 +0000 (23:35 +0100)
commit5185d288c11171a21a3057f0df906782493d0b39
tree681704b7cf11b337c5c5a1d107a90e68ab782659
parent3198df1860316306788332700a0bf6f4413d415f
Introduce RefDatabase#hasFastTipsWithSha1

The reftable format supports fast inverse (SHA1 => ref) queries.

If the ref database does not support fast inverse queries, it may be
advantageous to build a complete SHA1 to ref map in advance for
multiple uses. To let applications decide, this function indicates
whether the inverse map is available.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Change-Id: Idaf7e01075906972ec21332cade285289619c2b3
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/FileReftableTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/reftable/ReftableTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReftableDatabase.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileReftableDatabase.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/MergedReftable.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/Reftable.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/ReftableDatabase.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/ReftableReader.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/RefDatabase.java