diff options
author | Kevin Ballard <kevin@sb.org> | 2010-10-15 23:57:51 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-10-19 12:00:28 -0700 |
commit | 1b8cdce94f4fff2408f8ed26fe4fc2f187a46794 (patch) | |
tree | d1406c40bc6327dea721a94113b6c841cec739f9 /t/t8002-blame.sh | |
parent | 38a18873b21f6f2eebedc65aff2249fd6ec2168c (diff) | |
download | git-1b8cdce94f4fff2408f8ed26fe4fc2f187a46794.tar.gz |
blame: Add option to show author email instead of name
Add a new option -e (or --show-email) to git-blame that will display
the author's email instead of name on each line. This option works
for both git-blame and git-annotate.
Signed-off-by: Kevin Ballard <kevin@sb.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t8002-blame.sh')
-rwxr-xr-x | t/t8002-blame.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t8002-blame.sh b/t/t8002-blame.sh index 597cf0486f..d3a51e1269 100755 --- a/t/t8002-blame.sh +++ b/t/t8002-blame.sh @@ -6,4 +6,9 @@ test_description='git blame' PROG='git blame -c' . "$TEST_DIRECTORY"/annotate-tests.sh +PROG='git blame -c -e' +test_expect_success 'Blame --show-email works' ' + check_count "<A@test.git>" 1 "<B@test.git>" 1 "<B1@test.git>" 1 "<B2@test.git>" 1 "<author@example.com>" 1 "<C@test.git>" 1 "<D@test.git>" 1 +' + test_done |