Re: [PATCH] Documentation/git-diff: remove -r from --name-status example
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jul 29, 2007, 02:06 UTC
- Message-ID
- <alpine.LFD.0.999.0707281905050.3442@woody.linux-foundation.org>
- In-Reply-To
- <20070729002427.GA1566@coredump.intra.peff.net>
On Sat, 28 Jul 2007, Jeff King wrote:
> > The '-r' now seems to be superfluous.
For diffing against (or using) the index, the "-r" is superfluous.
Why? Because the index is always the *full* list of files. It's "flat".
However, when you diff two trees, the -r makes a difference.
So I think you'd find a difference if you actually diffed two commits with "git diff tree2..tree2".
Linus