2025年6月3日 14:12,Junio C Hamano <gitster@xxxxxxxxx> 写道: > > "Lidong Yan via GitGitGadget" <gitgitgadget@xxxxxxxxx> writes: > >> +test_expect_success 'use pseudo-merge in boundary traversal' ' >> + git init pseudo-merge-boundary-traversal && >> + ( >> + cd pseudo-merge-boundary-traversal && >> + >> + git config bitmapPseudoMerge.test.pattern refs/ && >> + git config bitmapPseudoMerge.test.threshold now && >> + git config bitmapPseudoMerge.test.stableThreshold now && > > >> + GIT_TEST_PACK_USE_BITMAP_BOUNDARY_TRAVERSAL=1 && > > Either before or after that line, don't you need to > > export GIT_TEST_PACK_USE_BITMAP_BOUNDARY_TRAVERSAL && > > as well? > > And if the test passed without exporting the variable, is it really > testing what we want to test? > Sorry about that. I should put GIT_TEST_PACK_USE_BITMAP_BOUNDARY_TRAVERSAL In front of `git rev-list …` so that when traverse bitmap it enters `pack-bitmap:find_boundary_objects()`. >> + test_commit A && >> + git repack -adb && >> + test_commit B && >> + >> + echo '1' >expect && >> + git rev-list --count --use-bitmap-index HEAD~1..HEAD >actual && >> + test_cmp expect actual >> + ) >> +' >> + >> test_done >> >> base-commit: 845c48a16a7f7b2c44d8cb137b16a4a1f0140229 >