Git Wizardry - Easy Way to Get the Change Set From Git

There is a pretty way way to get the Git commits between versions which can be used to build the change set log.

Below are the basic commands that should give you just that. But these commands are even more useful than this. This is almost too easy, this is why I call it wizardry :)

The only requirement is that you somehow know what is the commit of the latest release you did (if that's where you want to start your change set)

To find a specific commit (if you had a meaningful commit message)

 
git log --pretty=format:"%h - %an, %ar : %s" | grep "RELEASE: X.X.X"

or you can just use tag (if you have tagged the commit that preceded the release) and see where it points to or any other way you use to find the latest release commit where you want to start.

Once you found it, it's as easy as for example:

 
git log --pretty=format:"%h - %an, %ar : %s" b9c28fc..

***The revision is in .. revision and the last parameter defaults to HEAD if omitted (http://www.kernel.org/pub/software/scm/git/docs/git-log.html)</p>

Enjoy :)</until></since>