]> source.dussan.org Git - jgit.git/commit
DfsPackParser: Create object indices if config says so 93/191093/35
authorIvan Frade <ifrade@google.com>
Wed, 15 Dec 2021 00:35:54 +0000 (16:35 -0800)
committerIvan Frade <ifrade@google.com>
Fri, 14 Jul 2023 17:51:18 +0000 (10:51 -0700)
commit760bdd09b1d186d4ca4f21b7f771882513521949
treea60069bc837f4506ca6253d143dfde0a7eedd300
parentafb013b9837a385b658469f4595b65413e4d0dbf
DfsPackParser: Create object indices if config says so

The DfsInserter writes the pack and its indices in the flush() method,
but when the writing happens via DfsPackParser, it is the parser which
writes the pack and indices. When combined with a parser, flushing the
inserter is a noop.

Add the writing of the object size index to the packparser#parse
method, mirroring how the primary index is written.

Change-Id: I52c5db153fea7e4a8ecd8b3d5de7ad21f7f81a60
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsPackFileTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsPackParserTest.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsReaderTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackParser.java