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

[PATCH] gitweb: Add hash parameter in feed URL when a hash is specified in the current request

From
JQJean-Baptiste Quenot <jbq@caraldi.com>
Date
Mar 21, 2008, 18:38 UTC
Message-ID
<ae63f8b50803211138y6355fd11pa64cda50a1f53011@mail.gmail.com>
Hi list,

I was annoyed with the RSS feed link at the bottom of gitweb because I couldn't find a way to have a specific feed for every branch. With this patch, the generated links include the hash parameter so that feeds are context-dependant.

Hope it helps!
---
 gitweb/gitweb.perl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index ec73cb1..7d013bd 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -615,6 +615,7 @@ sub href(%) {
        my %mapping = @mapping;

        $params{'project'} = $project unless exists $params{'project'};
+       $params{'hash'} = $hash unless exists $params{'hash'};

        if ($params{-replay}) {
                while (my ($name, $symbol) = each %mapping) {
-- 
1.5.4.1-dirty
Next: Jakub Narebski
Message 1 of 4 in “gitweb: Add hash parameter in feed URL when a hash is specified in the current request”
  1. gitweb: Add hash parameter in feed URL when a hash is specified in the current requestJean-Baptiste Quenot, Mar 21, 2008
  2. Jakub NarebskiMar 21, 2008
  3. Jean-Baptiste QuenotMar 21, 2008
  4. Jakub NarebskiMar 21, 2008

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.