Re: [PATCH] Implement git-staged, an alias for 'git diff --cached'.
- From
Jeff King <peff@peff.net>
- Date
- Oct 29, 2008, 00:58 UTC
- Message-ID
- <20081029005814.GA8686@sigill.intra.peff.net>
- In-Reply-To
- <alpine.DEB.1.00.0810290201400.22125@pacific.mpi-cbg.de.mpi-cbg.de>
On Wed, Oct 29, 2008 at 02:02:29AM +0100, Johannes Schindelin wrote:
Show 5 quoted lines
> > +git-staged > > Would it not be better to teach "git show --staged" to do that, and to add > a command pair "git stage <file>" and "git unstage <file>" to do the > obvious?
Yes, I think half of the discussion went on IRC. But I don't think "git staged" is a good idea. I think a "--staged" alias for "--cached" in "git diff" makes a lot more sense.
-Peff