summaryrefslogtreecommitdiff
path: root/templates/hooks--update
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-07-08 08:50:02 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-08 10:11:16 (GMT)
commit3a895e0268537da731f5efe914ece5e7eac35ef3 (patch)
tree144e4d1c663d4894ba5d9e8f3ede36721a12178d /templates/hooks--update
parent83ad63cfebdf652ff7c7b255d700d8b12c756913 (diff)
downloadgit-3a895e0268537da731f5efe914ece5e7eac35ef3.zip
git-3a895e0268537da731f5efe914ece5e7eac35ef3.tar.gz
git-3a895e0268537da731f5efe914ece5e7eac35ef3.tar.bz2
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>
Diffstat (limited to 'templates/hooks--update')
-rw-r--r--templates/hooks--update4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/hooks--update b/templates/hooks--update
index d7a8f0a..76d5ac2 100644
--- a/templates/hooks--update
+++ b/templates/hooks--update
@@ -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:"
;;