summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitconfig b/.gitconfig
index 71aaaab..b4aa693 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -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};\