X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=templates%2Fhooks--update;h=76d5ac2477d669aabfef8108cfbb713fbdfef70a;hb=e77235ea38385a127d2afc969435a56d3ff2b16d;hp=27cea174d135eb82f9e0229a0adf4f4993c60f2d;hpb=8a3ee7c31469b5418a556a87cbac74509ded1cac;p=git.git diff --git a/templates/hooks--update b/templates/hooks--update index 27cea174d..76d5ac247 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 ;; @@ -68,14 +68,14 @@ then refs/heads/*) branch="${1##refs/heads/}" echo "New branch '$branch' available with the following commits:" - git-rev-list --pretty "$3" + git-rev-list --pretty "$3" $(git-rev-parse --not --all) ;; esac 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:" ;;