Code

git-notify: Mention the committer where applicable
authorHolger Weiss <holger@zedat.fu-berlin.de>
Sat, 24 Oct 2009 09:44:25 +0000 (11:44 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Sat, 24 Oct 2009 09:44:25 +0000 (11:44 +0200)
If the committer is not the author of the commit, mention the committer
in addition to the author.

tools/git-notify

index 0c2f7395fd2c1484aff70b739c0c3d884ea8d2c7..848cfe0d97785ad5acc488f628982f9fc11fb8da 100755 (executable)
@@ -269,6 +269,7 @@ sub send_commit_notice($$)
         "Commit: $obj",
         $gitweb_url ? "URL: $gitweb_url/?a=commit;h=$obj" : undef),
         "Author:" . $info{"author"},
+        $info{"committer"} ne $info{"author"} ? "Committer:" . $info{"committer"} : undef,
         "Date:" . format_date($info{"author_date"},$info{"author_tz"}),
         "",
         @{$info{"log"}},