blob: bc1ac77495347967c941298e2da38f76d5d124c6 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-shortlog(1)
2===============
3
4NAME
5----
Junio C Hamano1aa40d22010-01-21 17:46:436git-shortlog - Summarize 'git log' output
Junio C Hamano1a4e8412005-12-27 08:17:237
Junio C Hamano1a4e8412005-12-27 08:17:238SYNOPSIS
9--------
Junio C Hamanob6bd6ce2007-04-18 23:54:2810[verse]
Junio C Hamanofce7c7e2008-07-02 03:06:3811git log --pretty=short | 'git shortlog' [-h] [-n] [-s] [-e] [-w]
Junio C Hamanocc7636a2010-05-21 14:57:5312'git shortlog' [-n|--numbered] [-s|--summary] [-e|--email] [-w[<width>[,<indent1>[,<indent2>]]]] <commit>...
Junio C Hamano1a4e8412005-12-27 08:17:2313
14DESCRIPTION
15-----------
Junio C Hamano1aa40d22010-01-21 17:46:4316Summarizes 'git log' output in a format suitable for inclusion
Junio C Hamano5f1dfc72006-10-10 04:36:3017in release announcements. Each commit will be grouped by author and
Junio C Hamano33db4372006-06-07 19:51:4518the first line of the commit message will be shown.
Junio C Hamano1a4e8412005-12-27 08:17:2319
Junio C Hamano33db4372006-06-07 19:51:4520Additionally, "[PATCH]" will be stripped from the commit description.
21
Junio C Hamanocc7636a2010-05-21 14:57:5322If no revisions are passed on the command line and either standard input
23is not a terminal or there is no current branch, 'git shortlog' will
24output a summary of the log read from standard input, without
25reference to the current repository.
26
Junio C Hamano5f1dfc72006-10-10 04:36:3027OPTIONS
28-------
29
Junio C Hamanoeb415992008-06-08 22:49:4730-h::
31--help::
Junio C Hamano5f1dfc72006-10-10 04:36:3032Print a short usage message and exit.
33
Junio C Hamanoeb415992008-06-08 22:49:4734-n::
35--numbered::
Junio C Hamano5f1dfc72006-10-10 04:36:3036Sort output according to the number of commits per author instead
37of author alphabetic order.
38
Junio C Hamanoeb415992008-06-08 22:49:4739-s::
40--summary::
Junio C Hamanof9771f62007-01-17 17:42:3041Suppress commit description and provide a commit count summary only.
Junio C Hamano5f1dfc72006-10-10 04:36:3042
Junio C Hamanoeb415992008-06-08 22:49:4743-e::
44--email::
Junio C Hamano0c0da5f2007-12-13 02:45:3045Show the email address of each author.
46
Junio C Hamanocc7636a2010-05-21 14:57:5347--format[='<format>']::
48Instead of the commit subject, use some other information to
49describe each commit. '<format>' can be any string accepted
50by the `--format` option of 'git log', such as '{asterisk} [%h] %s'.
51(See the "PRETTY FORMATS" section of linkgit:git-log[1].)
52
53Each pretty-printed commit will be rewrapped before it is shown.
54
Junio C Hamano1bdd3b02008-04-13 05:33:1855-w[<width>[,<indent1>[,<indent2>]]]::
56Linewrap the output by wrapping each line at `width`. The first
57line of each entry is indented by `indent1` spaces, and the second
58and subsequent lines are indented by `indent2` spaces. `width`,
59`indent1`, and `indent2` default to 76, 6 and 9 respectively.
60
Junio C Hamanob6bd6ce2007-04-18 23:54:2861
Junio C Hamano8bc410e2009-02-15 10:38:1962MAPPING AUTHORS
63---------------
Junio C Hamano2fa431b2008-12-28 01:26:2364
Junio C Hamano8bc410e2009-02-15 10:38:1965The `.mailmap` feature is used to coalesce together commits by the same
66person in the shortlog, where their name and/or email address was
67spelled differently.
Junio C Hamano2fa431b2008-12-28 01:26:2368
Junio C Hamano8bc410e2009-02-15 10:38:1969include::mailmap.txt[]
Junio C Hamano2fa431b2008-12-28 01:26:2370
Junio C Hamano1a4e8412005-12-27 08:17:2371
72Author
73------
74Written by Jeff Garzik <jgarzik@pobox.com>
75
76Documentation
77--------------
78Documentation by Junio C Hamano.
79
80GIT
81---
Junio C Hamanof7c042d2008-06-06 22:50:5382Part of the linkgit:git[1] suite