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