]> source.dussan.org Git - jgit.git/commit
Gc#writePack: write the reverse index file to disk 85/197585/39
authorAnna Papitto <annapapitto@google.com>
Tue, 30 May 2023 14:20:54 +0000 (16:20 +0200)
committerAnna Papitto <annapapitto@google.com>
Wed, 31 May 2023 08:09:50 +0000 (10:09 +0200)
commit181b629f7deea1750b8e5d2160750ed2cef91c3d
treeeeffa060e46a3cdb9ef06caacbd9d2080e1ba209
parent0f071a7bcee1f551652b2ae017f3e0e134c7eb74
Gc#writePack: write the reverse index file to disk

The reverse index is currently created in-memory when needed. A writer
for reverse index files was already implemented.

Make garbage collection write the reverse index file when the PackConfig
enables it. Write it during #writePack, which mirrors how the primary
index is written.

Change-Id: I50131af6622c41a7b24534aaaf2a423ab4178981
Signed-off-by: Anna Papitto <annapapitto@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/GcReverseIndexTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java