Skip to contentSkip to conversation

gitweb - Add <author> and <guid>.

PATCH In review Yasushi SHOJI 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gitweb - Add <author> and <guid>.

Hi all,

with this patch and the privious one I just sent, you can run a pretty neat blog site with rss feed for geeks ;)

one missing feature is the picture tag Junio asked a while ago ;P

yashi
----
Add <author> and <guid>.

Quoted 1 line

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.

---

 gitweb.cgi |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

0a477312bf2975cf3240d3cf107ff7ac2e32049a

gitweb.cgi +2 -0
@@ -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>" .
 		      "<![CDATA[\n";
#1 lore raw
Quoted 7 lines · Yasushi SHOJI

Hi all,

with this patch and the privious one I just sent, you can run a pretty neat blog site with rss feed for geeks ;)

one missing feature is the picture tag Junio asked a while ago ;P

Quoted 7 lines

yashi
----
Add <author> and <guid>.

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.

Next version will have it. Thanks for the patch.

Kay