From: Junio C Hamano Date: Fri, 15 Sep 2006 06:17:20 GMT Subject: Re: [PATCH 2/3] gitweb: Allow for href() to be used for projectless links Message-ID: <7vzmd1zma7.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <200609150457.16924.jnareb@gmail.com> Jakub Narebski writes: > Change adding project to params if $params{"project"} is false > to adding project to params if it not exist. It allows for href() > to be used for projectless links by using "project=>undef" as > argument, while still adding project to params by default > in the most common case. This did not parse very well, at least for me. > @@ -1304,9 +1305,11 @@ sub git_footer_html { > if (defined $descr) { > print "\n"; > } > - print $cgi->a({-href => href(action=>"rss"), -class => "rss_logo"}, "RSS") . "\n"; > + print $cgi->a({-href => href(action=>"rss"), > + -class => "rss_logo"}, "RSS") . "\n"; > } else { > - print $cgi->a({-href => href(action=>"opml"), -class => "rss_logo"}, "OPML") . "\n"; > + print $cgi->a({-href => href(project=>undef, action=>"opml"), > + -class => "rss_logo"}, "OPML") . "\n"; > } > print "\n" . > "\n" . Argh. While I very much welcome folding of the long lines, I'd rather see a separate patch to clean up other loooooooong lines the current gitweb code has.