diff options
-rw-r--r-- | .gitconfig | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,7 +20,8 @@ swd = show --word-diff su = "!git_su() {\ set -- $(git rev-list --left-right --count @{u}...HEAD);\ - git show -$2; test $1 -eq 0 || echo \"also $1 behind!\";\ + test $2 -eq 0 || git show -$2;\ + test $1 -eq 0 || echo \"also $1 behind!\";\ }; git_su" pd = "!git_pd() {\ git diff --color \"$@\" | subdiff | ${PAGER};\ |