summaryrefslogtreecommitdiff
path: root/t/t4201-shortlog.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-12-16 13:51:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-12-16 17:39:10 (GMT)
commit03f40829ad22deb7b6950cfc28a3779ece9e6a56 (patch)
tree30925814e324e55f7a1a0f151f9f1dc938698cc2 /t/t4201-shortlog.sh
parentfbfda15fb8daf7388a19b8bed2f319a8c1b6c5f1 (diff)
downloadgit-03f40829ad22deb7b6950cfc28a3779ece9e6a56.zip
git-03f40829ad22deb7b6950cfc28a3779ece9e6a56.tar.gz
git-03f40829ad22deb7b6950cfc28a3779ece9e6a56.tar.bz2
shortlog: test and document --committer option
This puts the final touches on the feature added by fbfda15fb8 (shortlog: group by committer information, 2016-10-11). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4201-shortlog.sh')
-rwxr-xr-xt/t4201-shortlog.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t4201-shortlog.sh b/t/t4201-shortlog.sh
index ae08b57..6c7c637 100755
--- a/t/t4201-shortlog.sh
+++ b/t/t4201-shortlog.sh
@@ -190,4 +190,17 @@ test_expect_success 'shortlog with --output=<file>' '
test_line_count = 3 shortlog
'
+test_expect_success 'shortlog --committer (internal)' '
+ cat >expect <<-\EOF &&
+ 3 C O Mitter
+ EOF
+ git shortlog -nsc HEAD >actual &&
+ test_cmp expect actual
+'
+
+test_expect_success 'shortlog --committer (external)' '
+ git log --format=full | git shortlog -nsc >actual &&
+ test_cmp expect actual
+'
+
test_done