summaryrefslogtreecommitdiff
path: root/git-diff.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-diff.sh')
-rwxr-xr-xgit-diff.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/git-diff.sh b/git-diff.sh
index dc0dd312bf..0fe6770749 100755
--- a/git-diff.sh
+++ b/git-diff.sh
@@ -30,9 +30,11 @@ case " $flags " in
cc_or_p=--cc ;;
esac
-# If we do not have --name-status, --name-only, -r, or -c default to --cc.
+# If we do not have --name-status, --name-only, -r, -c or --stat,
+# default to --cc.
case " $flags " in
-*" '--name-status' "* | *" '--name-only' "* | *" '-r' "* | *" '-c' "* )
+*" '--name-status' "* | *" '--name-only' "* | *" '-r' "* | *" '-c' "* | \
+*" '--stat' "*)
;;
*)
flags="$flags'$cc_or_p' " ;;