Code

git-notify: Move the Gitweb URL to the bottom
authorHolger Weiss <holger@zedat.fu-berlin.de>
Sat, 24 Oct 2009 20:55:43 +0000 (22:55 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Sat, 24 Oct 2009 20:55:43 +0000 (22:55 +0200)
In commit notifications, specify the Gitweb URL (if any) at the bottom
of the ASCII "table" which summarizes the commit.  That looks better.

tools/git-notify

index 39abd66e173e219d831fd765181c27cacdb0824b..a786f8393aa6a0e267cf227b74dc6ebd049883c3 100755 (executable)
@@ -328,10 +328,10 @@ sub send_commit_notice($$)
         "Module: $repos_name",
         "Branch: $ref",
         "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"}),
+        $gitweb_url ? "URL: $gitweb_url/?a=commit;h=$obj" : undef),
         "",
         @{$info{"log"}},
         "",