[tools] git-notify: Add repository name to the subject of commit mails.

Jan Zerebecki jan.wine at zerebecki.de
Sat Oct 13 19:06:33 CDT 2007


This makes it possible to filter it over IMAP or NNTP without
downloading the whole messages.
---
If this patch is rejected from inclusion, please tell me why, as
I would have to ask anyway.

 git-notify |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/git-notify b/git-notify
index df8d49e..de74cff 100755
--- a/git-notify
+++ b/git-notify
@@ -227,7 +227,7 @@ sub send_commit_notice($$)
         "Date:   " . format_date($info{"tagger_date"},$info{"tagger_tz"}),
         "",
         join "\n", @{$info{"log"}};
-        $subject = "Tag " . $info{"tag"} . " : " . $info{"tagger_name"} . ": " . ${$info{"log"}}[0];
+        $subject = "$repos_name: Tag " . $info{"tag"} . " : " . $info{"tagger_name"} . ": " . ${$info{"log"}}[0];
     }
     else
     {
@@ -262,7 +262,7 @@ sub send_commit_notice($$)
             push @notice, "Diff:   $gitweb_url/?a=commitdiff;h=$obj",
         }
 
-        $subject = $info{"author_name"} . ": " . ${$info{"log"}}[0];
+        $subject = "$repos_name: " . $info{"author_name"} . ": " . ${$info{"log"}}[0];
     }
 
     mail_notification($commitlist_address, $subject, "text/plain; charset=UTF-8", @notice);



More information about the wine-patches mailing list