Re: [PATCH/RFC] Add git-changelog-script to show the changes between two commits
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Jul 21, 2005, 20:00 UTC
- Message-ID
- <Pine.LNX.4.58.0507211256460.6074@g5.osdl.org>
- In-Reply-To
- <20050721194138.GP20369@mythryan2.michonline.com>
On Thu, 21 Jul 2005, Ryan Anderson wrote:
> > Nevermind, I apparently wanted: > git-whatchanged HEAD ^$LAST_RELEASED_COMMIT
Yes. And since git-whatchanged uses git-rev-parse, and can thus use the extended git commit format, including ranges, you can literally write the above as
git-whatchanged $LAST_RELEASED_COMMIT..
(or, if you only care about the log, not the actual diff lines, use the faster and simpler
git log $LAST_RELEASED_COMMIT..
which will also show you merges - something git-whatchanged doesn't do).
You can also use the "--pretty" format specializers, so
git log --pretty=short $LAST_RELEASED_COMMIT..
will do exactly what you'd expect it to do.
Linus