From: David Symonds Date: Wed, 29 Oct 2008 00:44:08 GMT Subject: [PATCH] Implement git-staged, an alias for 'git diff --cached'. Message-ID: <1225241048-99267-1-git-send-email-dsymonds@gmail.com> In-Reply-To: <20081029003931.GA7291@sigill.intra.peff.net> Signed-off-by: David Symonds --- .gitignore | 1 + Makefile | 1 + git-staged.sh | 2 ++ 3 files changed, 4 insertions(+), 0 deletions(-) create mode 100755 git-staged.sh 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 git-stash git-status git-stripspace diff --git a/Makefile b/Makefile index d6f3695..1b23e53 100644 --- a/Makefile +++ b/Makefile @@ -262,6 +262,7 @@ SCRIPT_SH += git-rebase.sh SCRIPT_SH += git-repack.sh SCRIPT_SH += git-request-pull.sh SCRIPT_SH += git-sh-setup.sh +SCRIPT_SH += git-staged.sh SCRIPT_SH += git-stash.sh SCRIPT_SH += git-submodule.sh SCRIPT_SH += git-web--browse.sh diff --git a/git-staged.sh b/git-staged.sh new file mode 100755 index 0000000..66a5e33 --- /dev/null +++ b/git-staged.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exec git diff --cached "$@" -- 1.6.0