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

Re: [PATCH (amend)] gitweb: Use git-show-ref instead of git-peek-remote

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 25, 2006, 10:24 UTC
Message-ID
<ek95ik$2f3$1@sea.gmane.org>
In-Reply-To
<11644499234152-git-send-email-jnareb@gmail.com>
Jakub Narebski wrote:

Ooops. This is a part of next patch to send. Please delete this two chunks. Sorry for the mistake.

Show 26 quoted lines
> @@ -1293,8 +1294,9 @@ sub parse_commit {
>                       $co{'author'} = $1;
>                       $co{'author_epoch'} = $2;
>                       $co{'author_tz'} = $3;
> -                     if ($co{'author'} =~ m/^([^<]+) </) {
> -                             $co{'author_name'} = $1;
> +                     if ($co{'author'} =~ m/^([^<]+) <([^>]*)>/) {
> +                             $co{'author_name'}  = $1;
> +                             $co{'author_email'} = $2;
>                       } else {
>                               $co{'author_name'} = $co{'author'};
>                       }
> @@ -1303,7 +1305,12 @@ sub parse_commit {
>                       $co{'committer_epoch'} = $2;
>                       $co{'committer_tz'} = $3;
>                       $co{'committer_name'} = $co{'committer'};
> -                     $co{'committer_name'} =~ s/ <.*//;
> +                     if ($co{'committer'} =~ m/^([^<]+) <([^>]*)>/) {
> +                             $co{'committer_name'}  = $1;
> +                             $co{'committer_email'} = $2;
> +                     } else {
> +                             $co{'committer_name'} = $co{'committer'};
> +                     }
>               }
>       }
>       if (!defined $co{'tree'}) {
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Jakub NarebskiNext: Jakub Narebski
Message 5 of 8 in “gitweb: Use git-show-ref instead of git-peek-remote”
  1. gitweb: Use git-show-ref instead of git-peek-remoteJakub Narebski, Nov 24, 2006
  2. Junio C HamanoNov 24, 2006
  3. Jakub NarebskiNov 24, 2006
  4. gitweb: Use git-show-ref instead of git-peek-remoteJakub Narebski, Nov 25, 2006
  5. Jakub NarebskiNov 25, 2006
  6. gitweb: Use git-show-ref instead of git-peek-remoteJakub Narebski, Nov 25, 2006
  7. Junio C HamanoNov 25, 2006
  8. Jakub NarebskiNov 25, 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.