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

[PATCH] link in gitweb rss feed

From
EKErik van Konijnenburg <ekonijn@xs4all.nl>
Date
Jun 15, 2005, 15:41 UTC
Message-ID
<20050615174148.C3099@banaan.localdomain>

The following patch makes the site name in an RSS feedreader for a gitweb project refer to the summary page for the the project, the same place where you picked up the feed in the first place. This seems more consistent than linking to the overview of all projects where the link used to up. Changed the link in OPML feed accordingly; this used to end up in the full log rather than the summary.

Patch was made against version 220 as shipped in Debian, and applies (with offset) to your version 221.

Regards, Erik

--- gitorg.cgi 2005-06-15 17:11:51.000000000 +0200 +++ gitweb.cgi 2005-06-15 17:16:42.000000000 +0200

@@ -1227,7 +1227,7 @@
 	      "<rss version=\"2.0\" xmlns:content=\"http://purl.org/rss/1.0/modules/content/\">\n";
 	print "<channel>\n";
 	print "<title>$project</title>\n".
-	      "<link>" . escapeHTML("$my_url/$project/log") . "</link>\n".
+	      "<link>" . escapeHTML("$my_url?p=$project;a=summary") . "</link>\n".
 	      "<description>$project log</description>\n".
 	      "<language>en</language>\n";
 
@@ -1280,7 +1280,7 @@
 
 		my $path = escapeHTML(chop_str($proj{'path'}, 25, 5));
 		my $rss =  "$my_url?p=$proj{'path'};a=rss";
-		my $html =  "$my_url?p=$proj{'path'};a=log";
+		my $html =  "$my_url?p=$proj{'path'};a=summary";
 		print "<outline type=\"rss\" text=\"$path\" title=\"$path\" xmlUrl=\"$rss\" htmlUrl=\"$html\"/>\n";
 	}
 	print "</outline>\n".
Next: Kay Sievers
Message 1 of 2 in “link in gitweb rss feed”
  1. link in gitweb rss feedErik van Konijnenburg, Jun 15, 2005
  2. Kay SieversJun 22, 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.