git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Randal L. SchwartzNext: Randal L. Schwartz
Message 6 of 11 in “git-log to go forward instead of reverse?”
  1. Randal L. SchwartzJul 10, 2006
  2. Linus TorvaldsJul 10, 2006
  3. Randal L. SchwartzJul 10, 2006
  4. Linus TorvaldsJul 10, 2006
  5. Randal L. SchwartzJul 10, 2006
  6. Linus TorvaldsJul 10, 2006
  7. Randal L. SchwartzJul 10, 2006
  8. Junio C HamanoJul 10, 2006
  9. Junio C HamanoJul 10, 2006
  10. Randal L. SchwartzJul 10, 2006
  11. Linus TorvaldsJul 10, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.