Re: [PATCH] git-diff: Add --staged as a synonym for --cached.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 12, 2008, 00:57 UTC
- Message-ID
- <7v63mtu5fy.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <20081111012210.GA26920@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> To me, what is really being asked with "git diff --staged" (or "git > diff --cached" for that matter), is "what is staged?"
Ok, "what is staged (in index)?", relative to the named commit which defaults to HEAD, is a good argument. Let's apply it.