templates/hooks--update: replace diffstat calls with git diff --stat

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Eric Wong 2006-07-08 01:50:02 -07:00 committed by Junio C Hamano
parent 83ad63cfeb
commit 3a895e0268

View File

@ -60,7 +60,7 @@ then
echo "Changes since $prev:"
git rev-list --pretty $prev..$3 | $short
echo ---
git diff $prev..$3 | diffstat -p1
git diff --stat $prev..$3
echo ---
fi
;;
@ -75,7 +75,7 @@ else
base=$(git-merge-base "$2" "$3")
case "$base" in
"$2")
git diff "$3" "^$base" | diffstat -p1
git diff --stat "$3" "^$base"
echo
echo "New commits:"
;;