mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
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>
This commit is contained in:
parent
fbfda15fb8
commit
03f40829ad
|
@ -47,6 +47,10 @@ OPTIONS
|
||||||
|
|
||||||
Each pretty-printed commit will be rewrapped before it is shown.
|
Each pretty-printed commit will be rewrapped before it is shown.
|
||||||
|
|
||||||
|
-c::
|
||||||
|
--committer::
|
||||||
|
Collect and show committer identities instead of authors.
|
||||||
|
|
||||||
-w[<width>[,<indent1>[,<indent2>]]]::
|
-w[<width>[,<indent1>[,<indent2>]]]::
|
||||||
Linewrap the output by wrapping each line at `width`. The first
|
Linewrap the output by wrapping each line at `width`. The first
|
||||||
line of each entry is indented by `indent1` spaces, and the second
|
line of each entry is indented by `indent1` spaces, and the second
|
||||||
|
|
|
@ -190,4 +190,17 @@ test_expect_success 'shortlog with --output=<file>' '
|
||||||
test_line_count = 3 shortlog
|
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
|
test_done
|
||||||
|
|
Loading…
Reference in a new issue