From 03f40829ad22deb7b6950cfc28a3779ece9e6a56 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Fri, 16 Dec 2016 08:51:41 -0500 Subject: 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 Signed-off-by: Junio C Hamano --- t/t4201-shortlog.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 't/t4201-shortlog.sh') diff --git a/t/t4201-shortlog.sh b/t/t4201-shortlog.sh index ae08b57712..6c7c637481 100755 --- a/t/t4201-shortlog.sh +++ b/t/t4201-shortlog.sh @@ -190,4 +190,17 @@ test_expect_success 'shortlog with --output=' ' 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 -- cgit v1.2.1