Add <author> and <guid> to RSS feed
authorYasushi SHOJI <yashi@atmark-techno.com>
Thu, 18 Aug 2005 16:24:28 +0000 (18:24 +0200)
committerKay Sievers <kay.sievers@suse.de>
Thu, 18 Aug 2005 16:24:28 +0000 (18:24 +0200)
From http://blogs.law.harvard.edu/tech/rss
  author - Email address of the author of the item.
  guid   - A string that uniquely identifies the item.

Signed-off-by: Yasushi SHOJI <yashi@atmark-techno.com>
gitweb.cgi

index 8d4e4f702204d7a555117ab82ff64130cd4231c4..e68368d56bb5f3215b4e6ea0f0aa928324d4886e 100755 (executable)
@@ -1424,7 +1424,9 @@ sub git_rss {
                      "<title>" .
                      sprintf("%d %s %02d:%02d", $cd{'mday'}, $cd{'month'}, $cd{'hour'}, $cd{'minute'}) . " - " . escapeHTML($co{'title'}) .
                      "</title>\n" .
+                     "<author>" . escapeHTML($co{'author'}) . "</author>\n" .
                      "<pubDate>$cd{'rfc2822'}</pubDate>\n" .
+                     "<guid isPermaLink=\"true\">" . escapeHTML("$my_url?p=$project;a=commit;h=$commit") . "</guid>\n" .
                      "<link>" . escapeHTML("$my_url?p=$project;a=commit;h=$commit") . "</link>\n" .
                      "<description>" . escapeHTML($co{'title'}) . "</description>\n" .
                      "<content:encoded>" .