[PATCH] gitweb: Add hash parameter in feed URL when a hash is specified in the current request
- From
- Jean-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