Re: [PATCH] Implement git-staged, an alias for 'git diff --cached'. From: Jeff King <hidden> Date: 2016-06-15 22:45:32 On Tue, Oct 28, 2008 at 04:39:05PM -0700, David Symonds wrote: quoted hunk ↗ jump to hunk--- /dev/null +++ b/git-staged.sh@@ -0,0 +1,8 @@ +#!/bin/sh + +USAGE='' +SUBDIRECTORY_OK='Yes' +OPTIONS_SPEC= +. git-sh-setup + +git diff --cached Do you even need to do sh-setup? How about #!/bin/sh exec git diff --cached "$@" -Peff
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help