Skip to content

Commit 6511312

Browse files
avargitster
authored andcommitted
log: test for regression introduced in v1.7.2-rc0~103^2~2
Add a regression test for the git log -M --follow $diff_option bug introduced in v1.7.2-rc0~103^2~2, $diff_option being diff related options like -p, --stat, --name-only etc. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 44c48a9 commit 6511312

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

t/t4202-log.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,5 +436,17 @@ test_expect_success 'log.decorate configuration' '
436436
437437
'
438438

439-
test_done
439+
test_expect_success 'show added path under "--follow -M"' '
440+
# This tests for a regression introduced in v1.7.2-rc0~103^2~2
441+
test_create_repo regression &&
442+
(
443+
cd regression &&
444+
test_commit needs-another-commit &&
445+
test_commit foo.bar &&
446+
git log -M --follow -p foo.bar.t &&
447+
git log -M --follow --stat foo.bar.t &&
448+
git log -M --follow --name-only foo.bar.t
449+
)
450+
'
440451

452+
test_done

0 commit comments

Comments
 (0)