(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:test_description) op: Equal rhs: {(SQ <'Tests rebase performance'>)} spids: [4] ) ] spids: [4] ) (C {(.)} {(./perf-lib.sh)}) (C {(test_perf_default_repo)}) (C {(test_expect_success)} {(SQ <setup>)} { (SQ <'\n'> <'\tgit checkout -f -b base &&\n'> <'\tgit checkout -b to-rebase &&\n'> <'\tgit checkout -b upstream &&\n'> <'\tfor i in $(seq 100)\n'> <'\tdo\n'> <'\t\t# simulate huge diffs\n'> <'\t\techo change$i >unrelated-file$i &&\n'> <'\t\tseq 1000 >>unrelated-file$i &&\n'> <'\t\tgit add unrelated-file$i &&\n'> <'\t\ttest_tick &&\n'> <'\t\tgit commit -m commit$i unrelated-file$i &&\n'> <'\t\techo change$i >unrelated-file$i &&\n'> <'\t\tseq 1000 | tac >>unrelated-file$i &&\n'> <'\t\tgit add unrelated-file$i &&\n'> <'\t\ttest_tick &&\n'> <'\t\tgit commit -m commit$i-reverse unrelated-file$i ||\n'> <'\t\tbreak\n'> <'\tdone &&\n'> <'\tgit checkout to-rebase &&\n'> <'\ttest_commit our-patch interesting-file\n'> ) } ) (C {(test_perf)} {(SQ <'rebase on top of a lot of unrelated changes'>)} {(SQ <'\n'> <'\tgit rebase --onto upstream HEAD^ &&\n'> <'\tgit rebase --onto base HEAD^\n'>)} ) (C {(test_done)}) ] )