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>
This commit is contained in:
Johannes Schindelin
2006-04-14 00:15:30 +02:00
committed by Junio C Hamano
parent f327dbced2
commit d75f7952ef
4 changed files with 226 additions and 7 deletions

View File

@ -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' " ;;