Release notes' best friend.
Group commits by author. Default output: each author with their commit count and subjects. The fastest way to compose a release note's 'who contributed' section.
Shortlog is log filtered through a per-author aggregator. Most useful flags add summary counts and tame the output for paste-into-changelog.
git shortlog [<options>] [<revision range>] [[--] <path>...]| Flag | What it does |
|---|---|
-s | Suppress descriptions; just author + commit count. |
-n | Sort by commit count descending. |
-e | Show emails too. |
--no-merges | Skip merge commits. |
--group=<type> | Group by author, committer, or trailer:<name> (e.g. Reviewed-by). |
$ git shortlog -sne v1.1..HEAD$ git shortlog --group=trailer:Reviewed-by v1.1..v1.2.mailmap to canonicalize multiple identities for one human.-sne is the killer combo: short, numbered, with emails..mailmap, contributors with multiple emails count separately.--no-merges, merge commits inflate counts.Hit each option, then Check answers. Score is recorded; Next is always open.