Git development
 help / color / mirror / Atom feed
From: Erik van Konijnenburg <ekonijn@xs4all.nl>
To: Kay Sievers <kay.sievers@vrfy.org>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: [PATCH] link in gitweb rss feed
Date: Wed, 15 Jun 2005 17:41:48 +0200	[thread overview]
Message-ID: <20050615174148.C3099@banaan.localdomain> (raw)

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".

             reply	other threads:[~2005-06-15 15:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-15 15:41 Erik van Konijnenburg [this message]
2005-06-22  9:25 ` [PATCH] link in gitweb rss feed Kay Sievers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050615174148.C3099@banaan.localdomain \
    --to=ekonijn@xs4all.nl \
    --cc=git@vger.kernel.org \
    --cc=kay.sievers@vrfy.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox