Re: [RFC/PATCH 0/2] New 'stage' command
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Apr 5, 2009, 23:22 UTC
- Message-ID
- <fabb9a1e0904051622k66352ea4v542ecd99bd5d9c6@mail.gmail.com>
- In-Reply-To
- <200904060117.24810.markus.heidelberg@web.de>
Heya,
On Mon, Apr 6, 2009 at 01:17, Markus Heidelberg <markus.heidelberg@web.de> wrote:
Show 6 quoted lines
> Felipe Contreras, 06.04.2009: >> But actually, "git diff --cached" is a >> different action; you can't do "git diff --cached HEAD^.." for >> example. > > And I neither could I do "git stage diff HEAD^.."
I rest my case ;). That's the whole point Felipe is trying to make here. $ git diff --cached $ git diff HEAD^..
That's two different modes of operation with the only difference being a switch ('--cached'), which changes what is, and what is not valid after that.
Whereas with $ git stage diff
There is no confusion that 'HEAD^..' is not a valid argument, as there is no command in 'git stage diff' to which it _is_ a valid argument.
-- Cheers, Sverre Rabbelier