The contents of the releases

While extracting information from Git, one of the natural things to do is to generate release notes. To generate a release note, you need all the valid information from the repository between this release and the previous release.

We can utilize some of the methods we have used earlier to generate the data we want.

How to do it...

We start by listing the commits between two tags, v2.3.1.201302201838-r and v3.0.0.201305080800-m7, and then we build on that information:

  1. By using git log with v3.0.0.201305080800-m7.. v3.0.0.201305080800-m7, we will get the commits between the tags:
    $ git log --oneline v2.3.1.201302201838-r..v3.0.0.201305080800-m7
    00108d0 JGit v3.0.0.201305080800-m7
    e27993f Add missing @since tags
    d7cc6eb Move ...

Get Git: Mastering Version Control now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.