Re: [RFC/PATCH 0/2] New 'stage' command
- From
Björn Steinbrink <b.steinbrink@gmx.de>
- Date
- Apr 6, 2009, 19:25 UTC
- Message-ID
- <20090406192514.GI20356@atjola.homenet>
- In-Reply-To
- <94a0d4530904061213pabd87aj9db577aaa231945c@mail.gmail.com>
On 2009.04.06 22:13:26 +0300, Felipe Contreras wrote:
Show 12 quoted lines
> On Mon, Apr 6, 2009 at 9:30 PM, Junio C Hamano <gitster@pobox.com> wrote: > > David Kågedal <davidk@lysator.liu.se> writes: > > > >> What do you mean? This was a suggestion for how git diff should > >> work. I fail to see how you would need a WORKTREEANDTHEINDEX there. > > > > You are talking only about "git diff". I am talking about the whole git > > suite, because you have to worry about how such a proposal would affect > > other parts of the UI. > > How do currently do you something like this: > git diff HEAD^..STAGE
git diff --cached HEAD^
The "hard" (and pretty weird) one would be "git diff STAGE..HEAD^", which is:
git diff -R --cached HEAD^
Björn