Release Notes Between Two Tags

Exactly what changed between two tags, and who did it.

  • Range by reachability
  • Mailmap credits
  • Version jump checked
A rounded post office counter on a desk with soft parcels tied with ribbon, sorted between two smooth tall posts, beside blank cards and a rubber stamp.

The guide

Release notes are a question about the graph: which commits really lie between two tags

Notes for a release should list exactly the work between two versions, credit the people who did it, and say whether the version number told the truth.

  • 6, not 4 commits in v1.1.0..v1.2.0 of the example, by graph and by log position
  • A..B commits reachable from B and not from A
  • BREAKING CHANGE the one footer token that must be written in capitals
  • 4 line forms a .mailmap may use
  • 25 percent share of trailer lines git needs when one is a git-written trailer
Read the full guide Fold the guide 7 min · 17 sources

Release notes answer one plain question for the people who use a piece of software: what changed between the version I run and the one I am about to install. They are usually a terse summary of new features, fixes and the actions a user has to take, and they are often published apart from the changelog, which keeps the longer running record of every change. The difference matters. A changelog can be curated, or it can be a generated report of everything, and many projects find the raw list of code changes unhelpful as a document for readers.

So release notes start with a selection problem before they become a writing problem. Before anyone decides how to phrase an entry, someone has to decide which commits belong to this release at all. That sounds trivial. It is not, and getting it wrong is how a fix that shipped months ago turns up again in the notes, or how a whole feature branch goes missing.

Between two tags means reachable, not listed

A git history is a graph. Every commit names its parents, a merge names two or more, and a tag is a fixed name for one commit. The git manual defines the range that release notes need in exactly these terms. Writing A..B asks for the commits that are reachable from B, excluding those reachable from A. Nothing in that definition mentions dates, the order of lines in a log, or which branch a commit was made on.

That is the point. A feature branch can start before one release, sit unmerged while that release ships, and be merged before the next one. Its commits are older than the first tag by the clock. They still belong to the second release, because the first tag cannot reach them and the second one can. Any method that reads the commits printed between the two tag lines of a log, or filters by date, will miss them.

The tool on this page takes the visitor’s whole log, with each commit’s full hash, parent hashes and ref names, and walks the parent links itself. It never trusts the order the log was printed in. The command it shows uses the format codes that git documents for exactly these fields, and separates records and fields with the bytes 0x1E and 0x1F (the %x1e and %x1f codes), so multi-line bodies and trailers arrive intact. It runs with --all, because a walk over parent links is only as complete as the history it is given.

Here is a worked example you can reproduce by loading the example history on this page and choosing v1.1.0 to v1.2.0. The walk finds 6, not 4. Reading the log between the two tag lines finds only four, because two commits on a branch that started at v0.9.0, “read arrays” and “nested arrays off by one”, were merged only after v1.1.0. In the scratch tests behind this page, the same mistake gave the wrong commit set for 140 of 267 tag pairs, while the walk matched git rev-list on all 267.

What Conventional Commits adds, and what it leaves open

The same walk feeds everything else on the page. The notes, the credits and the version check all read one commit set, so they always describe the same release.

Once the commits are known, the notes need to know what each one is. Conventional Commits 1.0.0 gives a commit message a small grammar. The first line is a type, an optional scope in parentheses, an optional exclamation mark, a colon and a space, then the description. A body may follow one blank line later, and footers come one blank line after the body, each a token, a separator of colon and space or space and hash, and a value.

The specification ties three of those signals to Semantic Versioning. A fix correlates with a patch release, a feat with a minor one, and a breaking change, marked either by the exclamation mark or by a footer, with a major one. The footer token BREAKING CHANGE must be written in capitals; BREAKING-CHANGE means the same thing. Other types are allowed and carry no implied effect on the version unless they also mark a break.

Some things the specification deliberately leaves open, and a tool should say so rather than pretend otherwise. What counts as a noun for a type, how a footer section is told apart from a body paragraph that happens to begin with a word and a colon, and how reverts are handled are all left to implementers. The FAQ suggests a revert type with a footer naming the reverted hashes. This tool states its reading of each open point, and it lists every message that fails the grammar with the line, the column and the reason. It never drops a commit silently.

Breaking changes deserve special care when an upgrade spans several releases. Someone moving from 1.0.0 to 2.0.0 also crosses 1.1.0 and 1.2.0, and each break arrived in one of them. The notes on this page put every breaking change first and label it with the earliest tag in the range whose history contains it. That is the reverse of the question git describe answers, which finds the most recent tag reachable from a commit.

Reverts are a second trap. When git reverts a commit it writes a message whose body begins “This reverts commit” followed by the full hash of the original. If both the original and its revert lie inside the range, the pair cancels out and neither belongs in the notes, though both should be listed so nobody wonders where a feature went. A revert of something released earlier stays in the notes, because it changes what users had.

Credit that survives a changed email address

The git manual describes git shortlog as a summary of the log suitable for inclusion in release announcements, and its summary, numbered and email options give exactly the table release notes need: one line per person with a count of commits. It can also group by a commit message trailer, so co-authors named in Co-authored-by lines are counted beside the authors, once per commit for each distinct person.

People change machines, employers and spelling. A .mailmap file maps the names and emails found in commits to canonical ones, and gitmailmap defines 4 line forms: a proper name for an email, a proper email for an email, both for an email, and both for a specific name and email pair. Names and emails match without regard to case. The tool parses those forms and was checked against git check-mailmap for every identity in its test repositories, with no difference.

Trailers have rules of their own, and they surprise people. Git only reads the last paragraph of a message as a trailer block if every line in it is a trailer, or if it holds a git-written trailer such as Signed-off-by and at least 25 percent of its lines are trailers. In the example history, a commit ends with “Closes #40” above a Co-authored-by line. Because “Closes #40” has no colon, git does not treat that paragraph as trailers, so the co-author earns no credit in git shortlog. The tool counts the same way and says why, instead of quietly disagreeing with git.

Merge commits count as well. In the tests behind this page, every credits table matched git shortlog for the same range, merges included, across 267 ranges and 4,412 rows.

Credit is easy to overstate, so it helps to be precise about what is counted. The table counts commits per identity after the mailmap. It does not measure effort, difficulty or review work, and it cannot see someone who paired on a change without being named in the message.

Did the version number tell the truth

Semantic Versioning 2.0.0 is short about increments. The major version must go up for backward incompatible changes to the public API, the minor version for new backward compatible functionality, and the patch version for backward compatible bug fixes. Version 0.y.z is for initial development, where anything may change at any time, and 1.0.0 defines the public API.

Put those rules beside the commit signals and a jump that already happened can be audited. A breaking change between 1.4.0 and 1.5.0 is a promise broken. In the worked example the range v1.1.0 to v1.2.0 holds “refactor(api)!: rename the config key”, which needs a major step, yet the version took a minor one, so the check flags it and names that commit. A jump larger than the changes require is allowed and reported as such.

This audit is only as honest as the messages. A breaking change that nobody marked is invisible to it, and so is a commit that does not follow the grammar, which is why the page lists unclassified commits next to the verdict. The wider practice of versioning has the same weakness. Wikipedia’s article on software versioning lists the risk of undeclared breaking changes among the ways the significance of a change can be judged.

Release notes still need a human editor. Keep a Changelog argues that raw commit logs make poor changelogs because they are full of noise, and it offers section names such as Added, Changed, Deprecated, Removed, Fixed and Security. The tool offers those names as one preset for its editable table of types and headings, and it writes nothing beyond the words already in the messages. What it supplies is the part a person should not have to do by hand: the exact set of commits, the breaks in the order they arrived, the reverts that cancel, the credit after identities are merged, and a plain verdict on the version jump.

Sources

Every source consulted for this guide. Links checked October 30, 2026.

  1. Conventional Commits 1.0.0 Conventional Commits (CC BY 3.0)
  2. Semantic Versioning 2.0.0 semver.org (CC BY 3.0)
  3. gitrevisions Documentation Git project, git-scm.com
  4. git-rev-list Documentation Git project, git-scm.com
  5. git-log Documentation Git project, git-scm.com
  6. pretty-formats Documentation Git project, git-scm.com
  7. git-shortlog Documentation Git project, git-scm.com
  8. gitmailmap Documentation Git project, git-scm.com
  9. git-check-mailmap Documentation Git project, git-scm.com
  10. git-interpret-trailers Documentation Git project, git-scm.com
  11. git-revert Documentation Git project, git-scm.com
  12. git-describe Documentation Git project, git-scm.com
  13. Keep a Changelog 1.1.0 Olivier Lacan, keepachangelog.com (MIT)
  14. Release notes Wikipedia (CC BY-SA)
  15. Changelog Wikipedia (CC BY-SA)
  16. Software versioning Wikipedia (CC BY-SA)
  17. Software release life cycle Wikipedia (CC BY-SA)