summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9dc5f8c)
raw | patch | inline | side by side (parent: 9dc5f8c)
author | Luben Tuikov <ltuikov@yahoo.com> | |
Wed, 4 Oct 2006 07:13:38 +0000 (00:13 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 4 Oct 2006 21:56:50 +0000 (14:56 -0700) |
Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index dc21cd6471ab22865f6bbe05da4b32da4f4dc3f6..a99fabf4add3f65f8e950f4e29b5aecf04b202da 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
<tr><th>Commit</th><th>Line</th><th>Data</th></tr>
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) {
$print_c8 = 1;
}
print "<tr class=\"$rev_color[$current_color]\">\n";
- print "<td class=\"sha1\">";
+ print "<td class=\"sha1\"";
+ if ($print_c8 == 1) {
+ print " title=\"$author, $date\"";
+ }
+ print ">";
if ($print_c8 == 1) {
print $cgi->a({-href => href(action=>"commit", hash=>$full_rev, file_name=>$file_name)},
esc_html($rev));