cleanup git commit emails
authorBaris Metin <Talip-Baris.Metin@sophia.inria.fr>
Wed, 9 Jun 2010 22:09:04 +0000 (00:09 +0200)
committerBaris Metin <Talip-Baris.Metin@sophia.inria.fr>
Wed, 9 Jun 2010 22:09:04 +0000 (00:09 +0200)
scripts/post-receive-email-with-diffs

index 5462cda..3a437a7 100755 (executable)
@@ -192,11 +192,7 @@ generate_email_header()
        X-Git-Oldrev: $oldrev
        X-Git-Newrev: $newrev
 
-       This is an automated email from the git hooks/post-receive script. It was
-       generated because a ref change was pushed to the repository containing
-       the project "$projectdesc".
-
-       The $refname_type, $short_refname has been ${change_type}d
+        On $projectdesc, the $refname_type, $short_refname has been ${change_type}d
        EOF
 }
 
@@ -383,10 +379,6 @@ generate_update_branch_email()
 
        echo ""
        if [ -z "$rewind_only" ]; then
-               echo "Those revisions listed above that are new to this repository have"
-               echo "not appeared on any other notification email; so we list those"
-               echo "revisions in full, below."
-
                echo ""
                echo $LOGBEGIN
                git rev-parse --not --branches | grep -v $(git rev-parse $refname) |
@@ -605,7 +597,7 @@ send_mail()
 # ---------------------------- main()
 
 # --- Constants
-LOGBEGIN="- Log -----------------------------------------------------------------"
+LOGBEGIN="-----------------------------------------------------------------------"
 LOGEND="-----------------------------------------------------------------------"
 
 # --- Config