3 test_description
='Test fsck skipList performance'
11 test_expect_success
"setup $n bad commits" '
12 for i in $(test_seq 1 $n)
14 echo "commit refs/heads/master" &&
15 echo "committer C <c@example.com> 1234567890 +0000" &&
18 echo "EOF" || return 1
19 done | q_to_nul | git fast-import
23 while test $skip -le $n
25 test_expect_success
"create skipList for $skip bad commits" '
26 git log --format=%H --max-count=$skip |
30 test_perf
"fsck with $skip skipped bad commits" '
31 git -c fsck.skipList=skiplist fsck