]> source.dussan.org Git - jgit.git/commit
Add verification in GcKeepFilesTest that bitmaps are generated 09/202509/2
authorLuca Milanesio <luca.milanesio@gmail.com>
Sat, 10 Jun 2023 00:20:44 +0000 (01:20 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 5 Jul 2023 13:30:11 +0000 (15:30 +0200)
commit88ca88a32bba8d5a59bae1901990f3bc643545eb
treece027f237ffe11cf61d6bba9e29f5b4c4efe8aea
parent3a6eec9bb697a599a32ccb08ee176e6d4982f90f
Add verification in GcKeepFilesTest that bitmaps are generated

The packfiles with the .keep extensions are meant to prevent
a packfile from being processed or removed during GC.
From the point of view of the GC process then, the associated
packfile should be completely transparent:
- it should not included in the repacked file
- it should not pruned
- its objects should be left untouched, even if unreachable
- the GC process, including the bitmap generation should continue
  as usual, as the the packfiles with .keep file did not exist

Add one explicit test for making sure that the management
of .keep file is also transparent to the generation of bitmaps,
which are still generated if a .keep file exists.

Bug: 582039
Change-Id: I14f6adc3f961c606fbc617e51ea6ed6e2ef8604f
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/GcKeepFilesTest.java