Re: [PATCH] Implement git-staged, an alias for 'git diff --cached'.
- From
Jeff King <peff@peff.net>
- Date
- Oct 29, 2008, 00:39 UTC
- Message-ID
- <20081029003931.GA7291@sigill.intra.peff.net>
- In-Reply-To
- <1225238368-98594-1-git-send-email-dsymonds@gmail.com>
On Tue, Oct 28, 2008 at 04:59:28PM -0700, David Symonds wrote:
Show 5 quoted lines
> --- /dev/null > +++ b/git-staged.sh > @@ -0,0 +1,2 @@ > +#!/bin/sh > +exec git diff --cached $*
This is broken for arguments with spaces. Use "$@" instead.
But I think this isn't a serious patch anyway, so we are probably wasting too much time on it. ;P
-Peff