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 <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Aug 15, 2010 at 10:16 UTC
65113121a50cd765033d51204213c817832c59cf
1 file changed
+13
-1
t/t4202-log.sh
+13
-1
@@ -436,5 +436,17 @@ test_expect_success 'log.decorate configuration' '
436
437
'
438
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
+'
451
452
+test_done