Skip to content

Commit

Permalink
log: test for regression introduced in v1.7.2-rc0~103^2~2
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ævar Arnfjörð Bjarmason authored and Junio C Hamano committed Aug 16, 2010
1 parent 44c48a9 commit 6511312
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion t/t4202-log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6511312

Please sign in to comment.