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

Re: What should I use instead of git show?

From
Linus Torvalds <torvalds@osdl.org>
Date
Mar 13, 2006, 16:33 UTC
Message-ID
<Pine.LNX.4.64.0603130830050.3618@g5.osdl.org>
In-Reply-To
<200603131717.53416.astralstorm@o2.pl>
On Mon, 13 Mar 2006, Radoslaw Szkodzinski wrote:
Show 11 quoted lines
> On Monday 13 March 2006 15:47, Olivier Galibert wrote yet:
> > Since it seems to be gone.
> >
> > Up until now, when I wanted to send a patch to someone with the
> > associated changelog, I just did a git log to find the changelog sha1
> > then a git show to get the goods.  How am I supposed to do that now?
> >
> >   OG.
> 
> Why not use git-whatchanged? It's exacly meant to do this.
> Or try qgit, or even gitk (which is what git show did).
Why not just use "git show"?
It hasn't gone anywhere that I know of. It's still there.

Are you stuck with an older version of git that doesn't have it? If so, you can indeed do

	git whatchanged -p -1 <sha1>

instead (actually, if your git is really old, you shouldn't use the modern shorthand of "-1", you should use the longer "--max-count=1" instead).

		Linus
Previous: Radoslaw SzkodzinskiNext: Olivier Galibert
Message 3 of 11 in “What should I use instead of git show?”
  1. Olivier GalibertMar 13, 2006
  2. Radoslaw SzkodzinskiMar 13, 2006
  3. Linus TorvaldsMar 13, 2006
  4. Olivier GalibertMar 13, 2006
  5. Mark HollomonMar 13, 2006
  6. Junio C HamanoMar 13, 2006
  7. Mark HollomonMar 14, 2006
  8. Olivier GalibertMar 13, 2006
  9. Paul MackerrasMar 20, 2006
  10. Olivier GalibertMar 20, 2006
  11. Junio C HamanoMar 14, 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.