Linus Torvalds wrote:
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