Skip to content

Commit

Permalink
templates/hooks--update: replace diffstat calls with git diff --stat
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Eric Wong authored and Junio C Hamano committed Jul 8, 2006
1 parent 83ad63c commit 3a895e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/hooks--update
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
Expand All @@ -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:"
;;
Expand Down

0 comments on commit 3a895e0

Please sign in to comment.