| test_description='test combined/stat/moved interaction' |
| # This test covers a weird 3-way interaction between "--cc -p", which will run |
| # the combined diff code, along with "--stat", which will be computed as a |
| # first-parent stat during the combined diff, and "--color-moved", which |
| # enables the emitted_symbols list to store the diff in memory. |
| test_expect_success 'set up history with a merge' ' |
| git checkout -b side HEAD^ && |
| test_expect_success 'log --cc -p --stat --color-moved' ' |
| 1 file changed, 1 insertion(+) |
| index 0000000..$(git rev-parse --short D:D.t) |
| 1 file changed, 1 insertion(+) |
| 1 file changed, 1 insertion(+) |
| index 0000000..$(git rev-parse --short C:C.t) |
| 1 file changed, 1 insertion(+) |
| index 0000000..$(git rev-parse --short B:B.t) |
| 1 file changed, 1 insertion(+) |
| index 0000000..$(git rev-parse --short A:A.t) |
| git log --format="commit %s" --cc -p --stat --color-moved >actual && |