Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2010-10-16 10:57:51 +0400
committerJunio C Hamano <gitster@pobox.com>2010-10-19 23:00:28 +0400
commit1b8cdce94f4fff2408f8ed26fe4fc2f187a46794 (patch)
treed1406c40bc6327dea721a94113b6c841cec739f9 /t/t8002-blame.sh
parent38a18873b21f6f2eebedc65aff2249fd6ec2168c (diff)
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-xt/t8002-blame.sh5
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