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

Re: Commit-ish shortcut for immediate parent range

From
APAndy Parkins <andyparkins@gmail.com>
Date
Oct 22, 2006, 20:17 UTC
Message-ID
<200610222117.45766.andyparkins@gmail.com>
In-Reply-To
<Pine.LNX.4.64.0610221017180.3962@g5.osdl.org>
On Sunday 2006, October 22 18:25, Linus Torvalds wrote:
Show 5 quoted lines
> Umm. That's not actually a very sensible operation. It's only sensible in
> the special case of "diff", and for that special case, what we do is to
> actually just say that the _command_ is special, not the range.
>
> It's called "git show".

You're entirely correct, that that is what I was looking for in that particular case. However, the reason I raised it as a question was that I was poking around with git (which I'm enjoying immensely by the way - it really is as perfect an SCM as I have ever used) and in short succession did

git-diff X^..X git-log X^..X git-format-patch X^..X

I imagined that I would eventually stumble on other git commands where I would want to do this operation again. I'm sure I will have picked an incorrect command in each case, however, they all did exactly what I wanted so I stopped looking for the "right" command :-)

Andy
-- 
Dr Andrew Parkins, M Eng (Hons), AMIEE
andyparkins@gmail.com
Previous: Linus TorvaldsNext: Linus Torvalds
Message 5 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.