Re: [PATCH] Implement git-staged, an alias for 'git diff --cached'.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 29, 2008, 01:02 UTC
- Message-ID
- <alpine.DEB.1.00.0810290201400.22125@pacific.mpi-cbg.de.mpi-cbg.de>
- In-Reply-To
- <1225241048-99267-1-git-send-email-dsymonds@gmail.com>
Hi,
On Tue, 28 Oct 2008, David Symonds wrote:
Show 9 quoted lines
> diff --git a/.gitignore b/.gitignore > index bbaf9de..9353d19 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -118,6 +118,7 @@ git-show > git-show-branch > git-show-index > git-show-ref > +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?
Ciao, Dscho