git-rm: do not fail on already removed file.
[gitweb.git] / templates / hooks--update
index d7a8f0a849523ebc280e06fe836f3bc448993d0c..9863a800c8b945494f284c58112388b9c865ec58 100644 (file)
@@ -19,7 +19,7 @@ ref_type=$(git cat-file -t "$3")
 case "$1","$ref_type" in
 refs/tags/*,commit)
        echo "*** Un-annotated tags are not allowed in this repo" >&2
-       echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate."
+       echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
        exit 1;;
 refs/tags/*,tag)
        echo "### Pushing version '${1##refs/tags/}' to the masses" >&2
@@ -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:"
                ;;