2005-08-15 00:24:36 +00:00
|
|
|
git-shortlog(1)
|
|
|
|
===============
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2010-01-09 23:33:00 +00:00
|
|
|
git-shortlog - Summarize 'git log' output
|
2005-08-15 00:24:36 +00:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2007-04-18 22:10:22 +00:00
|
|
|
[verse]
|
2013-04-22 05:30:30 +00:00
|
|
|
git log --pretty=short | 'git shortlog' [<options>]
|
|
|
|
'git shortlog' [<options>] [<revision range>] [[\--] <path>...]
|
2005-08-15 00:24:36 +00:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2010-01-09 23:33:00 +00:00
|
|
|
Summarizes 'git log' output in a format suitable for inclusion
|
2012-09-13 22:27:09 +00:00
|
|
|
in release announcements. Each commit will be grouped by author and title.
|
2006-06-07 18:32:33 +00:00
|
|
|
|
|
|
|
Additionally, "[PATCH]" will be stripped from the commit description.
|
|
|
|
|
2010-05-04 02:57:10 +00:00
|
|
|
If no revisions are passed on the command line and either standard input
|
|
|
|
is not a terminal or there is no current branch, 'git shortlog' will
|
|
|
|
output a summary of the log read from standard input, without
|
|
|
|
reference to the current repository.
|
|
|
|
|
2006-10-06 19:39:09 +00:00
|
|
|
OPTIONS
|
|
|
|
-------
|
|
|
|
|
2008-06-08 01:36:09 +00:00
|
|
|
-n::
|
|
|
|
--numbered::
|
2006-10-06 19:39:09 +00:00
|
|
|
Sort output according to the number of commits per author instead
|
|
|
|
of author alphabetic order.
|
|
|
|
|
2008-06-08 01:36:09 +00:00
|
|
|
-s::
|
|
|
|
--summary::
|
2007-01-17 15:32:41 +00:00
|
|
|
Suppress commit description and provide a commit count summary only.
|
2006-10-06 19:39:09 +00:00
|
|
|
|
2008-06-08 01:36:09 +00:00
|
|
|
-e::
|
|
|
|
--email::
|
2007-12-11 12:33:12 +00:00
|
|
|
Show the email address of each author.
|
|
|
|
|
2010-10-08 17:31:18 +00:00
|
|
|
--format[=<format>]::
|
2010-05-04 02:59:55 +00:00
|
|
|
Instead of the commit subject, use some other information to
|
|
|
|
describe each commit. '<format>' can be any string accepted
|
docs: stop using asciidoc no-inline-literal
In asciidoc 7, backticks like `foo` produced a typographic
effect, but did not otherwise affect the syntax. In asciidoc
8, backticks introduce an "inline literal" inside which markup
is not interpreted. To keep compatibility with existing
documents, asciidoc 8 has a "no-inline-literal" attribute to
keep the old behavior. We enabled this so that the
documentation could be built on either version.
It has been several years now, and asciidoc 7 is no longer
in wide use. We can now decide whether or not we want
inline literals on their own merits, which are:
1. The source is much easier to read when the literal
contains punctuation. You can use `master~1` instead
of `master{tilde}1`.
2. They are less error-prone. Because of point (1), we
tend to make mistakes and forget the extra layer of
quoting.
This patch removes the no-inline-literal attribute from the
Makefile and converts every use of backticks in the
documentation to an inline literal (they must be cleaned up,
or the example above would literally show "{tilde}" in the
output).
Problematic sites were found by grepping for '`.*[{\\]' and
examined and fixed manually. The results were then verified
by comparing the output of "html2text" on the set of
generated html pages. Doing so revealed that in addition to
making the source more readable, this patch fixes several
formatting bugs:
- HTML rendering used the ellipsis character instead of
literal "..." in code examples (like "git log A...B")
- some code examples used the right-arrow character
instead of '->' because they failed to quote
- api-config.txt did not quote tilde, and the resulting
HTML contained a bogus snippet like:
<tt><sub></tt> foo <tt></sub>bar</tt>
which caused some parsers to choke and omit whole
sections of the page.
- git-commit.txt confused ``foo`` (backticks inside a
literal) with ``foo'' (matched double-quotes)
- mentions of `A U Thor <author@example.com>` used to
erroneously auto-generate a mailto footnote for
author@example.com
- the description of --word-diff=plain incorrectly showed
the output as "[-removed-] and {added}", not "{+added+}".
- using "prime" notation like:
commit `C` and its replacement `C'`
confused asciidoc into thinking that everything between
the first backtick and the final apostrophe were meant
to be inside matched quotes
- asciidoc got confused by the escaping of some of our
asterisks. In particular,
`credential.\*` and `credential.<url>.\*`
properly escaped the asterisk in the first case, but
literally passed through the backslash in the second
case.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2012-04-26 08:51:57 +00:00
|
|
|
by the `--format` option of 'git log', such as '* [%h] %s'.
|
2010-05-04 02:59:55 +00:00
|
|
|
(See the "PRETTY FORMATS" section of linkgit:git-log[1].)
|
|
|
|
|
|
|
|
Each pretty-printed commit will be rewrapped before it is shown.
|
|
|
|
|
2008-04-12 22:38:20 +00:00
|
|
|
-w[<width>[,<indent1>[,<indent2>]]]::
|
|
|
|
Linewrap the output by wrapping each line at `width`. The first
|
|
|
|
line of each entry is indented by `indent1` spaces, and the second
|
|
|
|
and subsequent lines are indented by `indent2` spaces. `width`,
|
|
|
|
`indent1`, and `indent2` default to 76, 6 and 9 respectively.
|
2013-01-09 20:16:45 +00:00
|
|
|
+
|
|
|
|
If width is `0` (zero) then indent the lines of the output without wrapping
|
|
|
|
them.
|
2008-04-12 22:38:20 +00:00
|
|
|
|
2013-04-22 05:30:30 +00:00
|
|
|
<revision range>::
|
|
|
|
Show only commits in the specified revision range. When no
|
|
|
|
<revision range> is specified, it defaults to `HEAD` (i.e. the
|
|
|
|
whole history leading to the current commit). `origin..HEAD`
|
|
|
|
specifies all the commits reachable from the current commit
|
|
|
|
(i.e. `HEAD`), but not from `origin`. For a complete list of
|
|
|
|
ways to spell <revision range>, see the "Specifying Ranges"
|
|
|
|
section of linkgit:gitrevisions[7].
|
|
|
|
|
|
|
|
[\--] <path>...::
|
|
|
|
Consider only commits that are enough to explain how the files
|
|
|
|
that match the specified paths came to be.
|
|
|
|
+
|
|
|
|
Paths may need to be prefixed with "\-- " to separate them from
|
|
|
|
options or the revision range, when confusion arises.
|
2009-02-08 14:34:31 +00:00
|
|
|
|
|
|
|
MAPPING AUTHORS
|
|
|
|
---------------
|
|
|
|
|
|
|
|
The `.mailmap` feature is used to coalesce together commits by the same
|
|
|
|
person in the shortlog, where their name and/or email address was
|
|
|
|
spelled differently.
|
|
|
|
|
|
|
|
include::mailmap.txt[]
|
2009-02-08 14:34:29 +00:00
|
|
|
|
2005-08-15 00:24:36 +00:00
|
|
|
GIT
|
|
|
|
---
|
2008-06-06 07:07:32 +00:00
|
|
|
Part of the linkgit:git[1] suite
|