Re: git-log to go forward instead of reverse?
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Jul 10, 2006, 20:09 UTC
- Message-ID
- <Pine.LNX.4.64.0607101304210.5623@g5.osdl.org>
- In-Reply-To
- <86mzbhntxu.fsf@blue.stonehenge.com>
On Mon, 10 Jul 2006, Randal L. Schwartz wrote:
> > then git-log --pretty=short ORIG_HEAD..HEAD | cat
> The log is just so I can quickly eyeball the interesting changes. The "cat" > is to keep git-log from starting a pager. (If there's a switch that does > *that* that I've overlooked, that'd be good too.)
Just do
PAGER= git log --pretty=short ORIG_HEAD..HEAD
instead.
And if you didn't know about "git shortlog" already, I personally actually find it easier to read
git log --no-merges ORIG_HEAD.. | git shortlog
which orders things by author instead. It also reverses the log messages as it does so, so each author will have the one-liners sorted oldest to newest the way you wanted to (so you do _not_ want to pass --reverse to that git-shortlog invocation).
Linus