git changelog generation: one liner


Needed some place to note this short one-liner for generating a changelog between version releases with git.

git log v0.5...v0.6 --pretty=format:'%s'

The output looks something like this.

RM #225: Fix xcc to build when gmp is already installed. This is a back-rev'd patch from crosstool-NG that required no changes so xcc would be on fedora 19.
RM #225: Disable xbmc for dev platform build except for tinyxml.
RM #225: crtmpserver depends on tinyxml from XBMC package added by pibox to buildroot.

This works as long as you've tagged your tree.  To tag the tree, use an annotated tag and then push to the origin to share it.

git tag -a v0.1 -m"Why did I do this?"
git push origin --tags

Tha'ts it.

Related posts

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.