git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] gitweb - Add <author> and <guid>.

From
Yasushi SHOJI <yashi@atmark-techno.com>
Date
Aug 18, 2005, 14:43 UTC
Message-ID
<87k6ijwbk8.wl@mail2.atmark-techno.com>
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>.
>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 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
0a477312bf2975cf3240d3cf107ff7ac2e32049a
diff --git a/gitweb.cgi b/gitweb.cgi
--- a/gitweb.cgi
+++ b/gitweb.cgi
@@ -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";
Next: Kay Sievers
Message 1 of 2 in “gitweb - Add <author> and <guid>.”
  1. gitweb - Add <author> and <guid>.Yasushi SHOJI, Aug 18, 2005
  2. Kay SieversAug 18, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.