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