jgit/org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit
Anna Papitto 2eba4e5b41 PackReverseIndex: open file if present otherwise compute
The existing #read and #computeFromIndex static builder methods require
the caller to choose whether to supply an input stream of a reverse
index file or a forward index to compute the reverse index from, which
is slower.

Allow a caller to provide a file path where the pack's reverse index
might be and the pack's forward index index and simply get some reverse
index instance back. Prefer opening and parsing the file if it is
present, to save computation time. Otherwise, fall back onto computing
the reverse index from the pack's forward index.

Change-Id: I09bdd4b813ad62c86add586417b2ab86e9331aec
Signed-off-by: Anna Papitto <annapapitto@google.com>
2023-07-18 15:19:26 -07:00
..
attributes Attributes: fix handling of text=auto in combination with eol 2020-05-22 17:08:52 -04:00
diff PatchApplierTest: Remove test data with Apache license 2023-03-28 05:58:28 -04:00
indexdiff Fix symlink content comparison on MacOS in tree walk 2016-10-11 00:20:23 +02:00
internal/transport/http HTTP: cookie file stores expiration in seconds 2021-03-03 00:26:51 +01:00
nls Fix TestTranslationBundle 2010-12-31 14:01:34 -08:00
patch Initial JGit contribution to eclipse.org 2009-09-29 16:47:03 -07:00
test/resources PackReverseIndex: open file if present otherwise compute 2023-07-18 15:19:26 -07:00
util ApplyCommand: add a stream to apply a delta patch 2021-05-26 00:37:59 +02:00