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

Re: [PATCH] gitweb: Show project's git URL on summary page

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 15, 2006, 19:32 UTC
Message-ID
<8fe92b430608151232y3f0ecd8ei435337709557162e@mail.gmail.com>
In-Reply-To
<Pine.LNX.4.63.0608151139280.29668@chino.corp.google.com>
On 8/15/06, David Rientjes <rientjes@google.com> wrote:
> On Tue, 15 Aug 2006, Jakub Narebski wrote:
Show 18 quoted lines
> > +     my $is_first_url = 1;
> > +     foreach my $git_base_url (@git_base_url_list) {
> > +             next unless $git_base_url; # skip empty/zerolength URLs
> > +             print "<tr><td>";
> > +             if ($is_first_url) {
> > +                     print "URL";
> > +                     $is_first_url = 0;
> > +             }
> > +             print "</td><td>$git_base_url/$project</td></tr>\n";
> > +     }
>
> Isn't it faster to do this (over 1.4.2):
> +       my $url_tag = "URL";
> +       foreach my $git_base_url (@git_base_url_list) {
> +               next unless $git_base_url;
> +               print "<tr><td>$url_tag</td><td>$git_base_url/$project</td></tr>\n";
> +               $url_tag = "";
> +       }
Yes, it is undobtedly better.
Acked-by: Jakub Narebski <jnareb@gmail.com>
-- 
Jakub Narebski
Previous: David RientjesNext: Jakub Narebski
Message 3 of 10 in “gitweb: Show project's git URL on summary page”
  1. gitweb: Show project's git URL on summary pageJakub Narebski, Aug 15, 2006
  2. David RientjesAug 15, 2006
  3. Jakub NarebskiAug 15, 2006
  4. gitweb: Show project's git URL on summary pageJakub Narebski, Aug 15, 2006
  5. David RientjesAug 15, 2006
  6. Aneesh Kumar K.VAug 16, 2006
  7. Jakub NarebskiAug 16, 2006
  8. 2/2 gitweb: Add support for per project git URLsJakub Narebski, Aug 16, 2006
  9. Junio C HamanoAug 16, 2006
  10. Jakub NarebskiAug 17, 2006

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.