Code

log: test for regression introduced in v1.7.2-rc0~103^2~2
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sun, 15 Aug 2010 10:16:25 +0000 (10:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Aug 2010 02:20:11 +0000 (19:20 -0700)
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 <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4202-log.sh

index 2230e606edea0c4f3dcd0b6b99298074d5341e4a..ead204e5cb77804ee1b54cc1b2f31d35312fa758 100755 (executable)
@@ -436,5 +436,17 @@ test_expect_success 'log.decorate configuration' '
 
 '
 
-test_done
+test_expect_success 'show added path under "--follow -M"' '
+       # This tests for a regression introduced in v1.7.2-rc0~103^2~2
+       test_create_repo regression &&
+       (
+               cd regression &&
+               test_commit needs-another-commit &&
+               test_commit foo.bar &&
+               git log -M --follow -p foo.bar.t &&
+               git log -M --follow --stat foo.bar.t &&
+               git log -M --follow --name-only foo.bar.t
+       )
+'
 
+test_done