summaryrefslogtreecommitdiff
path: root/git-diff.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-04-13 22:15:30 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-04-13 23:48:24 (GMT)
commitd75f7952ef56408baa03ff82ded52b9289249d5a (patch)
tree743d15298a116ea5aa378e4662c90f10a631b452 /git-diff.sh
parentf327dbced25a3c6fcc0b84d2d6adffa9343b09f0 (diff)
downloadgit-d75f7952ef56408baa03ff82ded52b9289249d5a.zip
git-d75f7952ef56408baa03ff82ded52b9289249d5a.tar.gz
git-d75f7952ef56408baa03ff82ded52b9289249d5a.tar.bz2
diff-options: add --stat (take 2)
Now, you can say "git diff --stat" (to get an idea how many changes are uncommitted), or "git log --stat". Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
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 dc0dd31..0fe6770 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' " ;;