From: Luben Tuikov Date: Wed, 4 Oct 2006 07:13:38 +0000 (-0700) Subject: gitweb: blame: Mouse-over commit-8 shows author and date X-Git-Tag: v1.4.4-rc1~69^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c8aeaaf7fc7dd93a284218e6a2b6e96b90e3100c;p=git.git gitweb: blame: Mouse-over commit-8 shows author and date Signed-off-by: Luben Tuikov Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index dc21cd647..a99fabf4a 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -2490,11 +2490,9 @@ sub git_blame2 { CommitLineData HTML while (<$fd>) { - /^([0-9a-fA-F]{40}).*?(\d+)\)\s{1}(\s*.*)/; - my $full_rev = $1; + my ($full_rev, $author, $date, $lineno, $data) = + /^([0-9a-f]{40}).*?\s\((.*?)\s+([-\d]+ [:\d]+ [-+\d]+)\s+(\d+)\)\s(.*)/; my $rev = substr($full_rev, 0, 8); - my $lineno = $2; - my $data = $3; my $print_c8 = 0; if (!defined $last_rev) { @@ -2506,7 +2504,11 @@ HTML $print_c8 = 1; } print "\n"; - print ""; + print ""; if ($print_c8 == 1) { print $cgi->a({-href => href(action=>"commit", hash=>$full_rev, file_name=>$file_name)}, esc_html($rev));