Merge branch 'tb/midx-write-propagate-namehash'
"git multi-pack-index write --bitmap" learns to propagate the hashcache from original bitmap to resulting bitmap. * tb/midx-write-propagate-namehash: t5326: test propagating hashcache values p5326: generate pack bitmaps before writing the MIDX bitmap p5326: don't set core.multiPackIndex unnecessarily p5326: create missing 'perf-tag' tag midx.c: respect 'pack.writeBitmapHashcache' when writing bitmaps pack-bitmap.c: propagate namehash values from existing bitmaps t/helper/test-bitmap.c: add 'dump-hashes' mode
This commit is contained in:
@ -6,15 +6,24 @@ test_description='Tests performance using midx bitmaps'
|
||||
|
||||
test_perf_large_repo
|
||||
|
||||
test_expect_success 'enable multi-pack index' '
|
||||
git config core.multiPackIndex true
|
||||
# we need to create the tag up front such that it is covered by the repack and
|
||||
# thus by generated bitmaps.
|
||||
test_expect_success 'create tags' '
|
||||
git tag --message="tag pointing to HEAD" perf-tag HEAD
|
||||
'
|
||||
|
||||
test_expect_success 'start with bitmapped pack' '
|
||||
git repack -adb
|
||||
'
|
||||
|
||||
test_perf 'setup multi-pack index' '
|
||||
git repack -ad &&
|
||||
git multi-pack-index write --bitmap
|
||||
'
|
||||
|
||||
test_expect_success 'drop pack bitmap' '
|
||||
rm -f .git/objects/pack/pack-*.bitmap
|
||||
'
|
||||
|
||||
test_full_bitmap
|
||||
|
||||
test_expect_success 'create partial bitmap state' '
|
||||
|
Reference in New Issue
Block a user