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

Re: Commit-ish shortcut for immediate parent range

From
Jakub Narebski <jnareb@gmail.com>
Date
Oct 22, 2006, 21:41 UTC
Message-ID
<ehgoii$1ap$1@sea.gmane.org>
In-Reply-To
<Pine.LNX.4.64.0610221331571.3962@g5.osdl.org>
Linus Torvalds wrote:
Show 11 quoted lines
> Now, "git show" obviously does exactly what you probably wanted, but for 
> future reference, the "git log" family of commands also take a "number of 
> commits" limiter.
> 
> So you can also do things like
> 
>         git log --cc -1 X
> 
> and it will actually do something very similar to "git show". It's not 
> _quite_ identical, but it's close - at least for the special case of a 
> single commit.

And of course this shortcut is not documented. git-log(1) and git-rev-list(1) talks only about "--max-count=<n>", and "-n <n>", and doesn't talk about possible shortcuts "-n<n>" and "-<n>". Perhaps because those shortcuts are discouraged?

Additionally you can find "-n <n>" shortcut only further on the git-rev-list(1).

Patch will follow.
BTW. what does "recursive diff" mean (in git)?
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Linus TorvaldsNext: Johannes Schindelin
Message 7 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.