diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-12-27 00:11:44 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-12-27 00:11:44 -0800 |
commit | ad1b4e2c0e5521da39e13088f197b256303a2fc8 (patch) | |
tree | a27f3769c1d19b968db460186360bc45edb365a9 /t | |
parent | c5139e0e3811ea3f6014187e76b243ccf287cb83 (diff) | |
parent | bc44f9332a8f6b258d7b7d2ecba063aa7f48e182 (diff) | |
download | git-ad1b4e2c0e5521da39e13088f197b256303a2fc8.tar.gz |
Merge branch 'lt/shortlog-by-committer'
"git shortlog" learned "--committer" option to group commits by
committer, instead of author.
* lt/shortlog-by-committer:
t4201: make tests work with and without the MINGW prerequiste
shortlog: test and document --committer option
shortlog: group by committer information
Diffstat (limited to 't')
-rwxr-xr-x | t/t4201-shortlog.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/t4201-shortlog.sh b/t/t4201-shortlog.sh index ae08b57712..9df054bf05 100755 --- a/t/t4201-shortlog.sh +++ b/t/t4201-shortlog.sh @@ -190,4 +190,23 @@ test_expect_success 'shortlog with --output=<file>' ' test_line_count = 3 shortlog ' +test_expect_success 'shortlog --committer (internal)' ' + git checkout --orphan side && + git commit --allow-empty -m one && + git commit --allow-empty -m two && + GIT_COMMITTER_NAME="Sin Nombre" git commit --allow-empty -m three && + + cat >expect <<-\EOF && + 2 C O Mitter + 1 Sin Nombre + 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 |