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

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
Previous: Ryan Anderson
Message 3 of 3 in “Add git-changelog-script to show the changes between two commits”
  1. Add git-changelog-script to show the changes between two commitsRyan Anderson, Jul 21, 2005
  2. Ryan AndersonJul 21, 2005
  3. Linus TorvaldsJul 21, 2005

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.