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

Re: What should I use instead of git show?

From
Junio C Hamano <junkio@cox.net>
Date
Mar 13, 2006, 23:55 UTC
Message-ID
<7vmzftq4r4.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<4415FFB8.3000001@comcast.net>
Mark Hollomon <markhollomon@comcast.net> writes:
Show 10 quoted lines
> I must be misunderstanding this:
>
> 	git whatchanged -p -1 HEAD
>
> in the current git tree results in nothing. only when I get to -5 does it show something.
>
> Is this expected?
>
>> git version
> git version 1.2.4.gea75

In this case what matterks is not the version of your git but what that HEAD is. If it is a merge commit, whatchanged -p does not show anything by default.

Previous: Mark HollomonNext: Mark Hollomon
Message 6 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.