I'm trying to use tags for release management in git--I create a tag for each release. I'd like to be able to create release notes by listing the comment titles for every commit since a tag, or between 2 tags. I can't seem to find any way to do this.
+1
A:
To show commits since TAG to current head:
git log TAG..HEAD
Between two commits:
git log TAG..TAG
For formatting the log output have a look at Pretty formats section of git log.
Igor Zevaka
2010-05-31 05:49:32
This lists more than just titles. See my answer.
Dominic Cooney
2010-05-31 05:57:58
+3
A:
If your tags are LastRelease
and NextRelease
then do git log --pretty=format:%s LastRelease..NextRelease
.
Dominic Cooney
2010-05-31 05:57:16