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

From: Jakub Narebski <jnareb@gmail.com>
Date: 2006-11-25 21:24:58
Jakub Narebski wrote:

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


> @@ -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


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat Nov 25 21:23:48 2006

This archive was generated by hypermail 2.1.8 : 2006-11-25 21:24:57 EST