Browse Source

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>
maint
Eric Wong 19 years ago committed by Junio C Hamano
parent
commit
3a895e0268
  1. 4
      templates/hooks--update

4
templates/hooks--update

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

Loading…
Cancel
Save