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

Re: Commit-ish shortcut for immediate parent range

From
Linus Torvalds <torvalds@osdl.org>
Date
Oct 22, 2006, 18:25 UTC
Message-ID
<Pine.LNX.4.64.0610221117570.3962@g5.osdl.org>
In-Reply-To
<Pine.LNX.4.64.0610221017180.3962@g5.osdl.org>
On Sun, 22 Oct 2006, Linus Torvalds wrote:
Show 6 quoted lines
> 
> So the thing to do is just
> 
> 	git show 3435fdb4c
> 
> and be happy.
Btw, if you really _only_ want the diff, you can do either
	git-diff-tree -p 3435fdb4c

which is the traditional "core" command for this. Somewhat sadly, I don't think we have a way to actually turn _off_ the description printing, so while you can turn off the _diff_ with "-s", the best you can do wrt the commit message is probably to use "--pretty=oneline" to cut it down to a single line.

I wonder if we should have a "--pretty=none" thing, so that you can use the "higher-level" git commands without seeing the log message.

Hmm..
			Linus
Previous: Linus TorvaldsNext: Andy Parkins
Message 4 of 13 in “Commit-ish shortcut for immediate parent range”
  1. Andy ParkinsOct 22, 2006
  2. Jakub NarebskiOct 22, 2006
  3. Linus TorvaldsOct 22, 2006
  4. Linus TorvaldsOct 22, 2006
  5. Andy ParkinsOct 22, 2006
  6. Linus TorvaldsOct 22, 2006
  7. Jakub NarebskiOct 22, 2006
  8. Johannes SchindelinOct 22, 2006
  9. Jakub NarebskiOct 22, 2006
  10. Junio C HamanoOct 22, 2006
  11. Linus TorvaldsOct 23, 2006
  12. Johannes SchindelinOct 22, 2006
  13. Jeff KingOct 22, 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.