This commit is contained in:
Kay Sievers 2005-08-07 20:25:27 +02:00
parent a4d26ef062
commit 10dba28d74

View File

@ -15,7 +15,7 @@ use CGI::Carp qw(fatalsToBrowser);
use Fcntl ':mode'; use Fcntl ':mode';
my $cgi = new CGI; my $cgi = new CGI;
my $version = "154"; my $version = "157";
my $my_url = $cgi->url(); my $my_url = $cgi->url();
my $my_uri = $cgi->url(-absolute => 1); my $my_uri = $cgi->url(-absolute => 1);
my $rss_link = ""; my $rss_link = "";
@ -201,17 +201,12 @@ div.log_link {
font-size:10px; font-family:sans-serif; font-style:normal; font-size:10px; font-family:sans-serif; font-style:normal;
position:relative; float:left; width:142px; position:relative; float:left; width:142px;
} }
div.list { display:block; padding:4px 8px 2px; }
div.list_head { div.list_head {
display:block; padding:6px 6px 4px; border:solid #d9d8d1; display:block; padding:6px 6px 4px; border:solid #d9d8d1;
border-width:0px 0px 1px; font-style:italic; border-width:1px 0px 0px; font-style:italic;
}
div.list a { text-decoration:none; color:#000000; }
div.list a:hover { color:#880000; }
div.list_link {
padding:4px 8px 6px; border:solid #d9d8d1; border-width:0px 0px 1px;
font-family:sans-serif; font-size:10px;
} }
a.list { text-decoration:none; color:#000000; }
a.list:hover { color:#880000; }
td { padding:5px 15px 0px 0px; font-size:12px; } td { padding:5px 15px 0px 0px; font-size:12px; }
th { padding-right:10px; font-size:12px; text-align:left; } th { padding-right:10px; font-size:12px; text-align:left; }
td.link { font-family:sans-serif; font-size:10px; } td.link { font-family:sans-serif; font-size:10px; }
@ -359,7 +354,7 @@ sub git_read_commit {
$co{'parent'} = $parents[0]; $co{'parent'} = $parents[0];
my (@comment) = map { chomp; $_ } <$fd>; my (@comment) = map { chomp; $_ } <$fd>;
$co{'comment'} = \@comment; $co{'comment'} = \@comment;
$comment[0] =~ m/^(.{0,60}[^ \/]*)/; $comment[0] =~ m/^(.{0,50}[^ \/\-_:\.]{0,10})/;
$co{'title'} = $1; $co{'title'} = $1;
if ($comment[0] ne $co{'title'}) { if ($comment[0] ne $co{'title'}) {
$co{'title'} .= " ..."; $co{'title'} .= " ...";
@ -624,7 +619,7 @@ sub git_project_list {
$proj{'owner'} = get_file_owner("$projectroot/$proj{'path'}") || ""; $proj{'owner'} = get_file_owner("$projectroot/$proj{'path'}") || "";
} }
print "<tr>\n" . print "<tr>\n" .
"<td>" . $cgi->a({-href => "$my_uri?p=$proj{'path'};a=summary"}, escapeHTML($proj{'path'})) . "</td>\n" . "<td>" . $cgi->a({-href => "$my_uri?p=$proj{'path'};a=summary", -class => "list"}, escapeHTML($proj{'path'})) . "</td>\n" .
"<td>$descr</td>\n" . "<td>$descr</td>\n" .
"<td><i>$proj{'owner'}</i></td>\n"; "<td><i>$proj{'owner'}</i></td>\n";
my $colored_age; my $colored_age;
@ -639,7 +634,6 @@ sub git_project_list {
"<td class=\"link\">" . "<td class=\"link\">" .
$cgi->a({-href => "$my_uri?p=$proj{'path'};a=summary"}, "summary") . $cgi->a({-href => "$my_uri?p=$proj{'path'};a=summary"}, "summary") .
" | " . $cgi->a({-href => "$my_uri?p=$proj{'path'};a=log"}, "log") . " | " . $cgi->a({-href => "$my_uri?p=$proj{'path'};a=log"}, "log") .
" | " . $cgi->a({-href => "$my_uri?p=$proj{'path'};a=tree"}, "tree") .
"</td>\n" . "</td>\n" .
"</tr>\n"; "</tr>\n";
} }
@ -741,9 +735,9 @@ sub git_summary {
my %ad = date_str($co{'author_epoch'}); my %ad = date_str($co{'author_epoch'});
print "<tr>\n"; print "<tr>\n";
if (--$i > 0) { if (--$i > 0) {
print "<td>$co{'age_string'}</td>\n" . print "<td><i>$co{'age_string'}</i></td>\n" .
"<td>$co{'author_name'}</td>\n" . "<td><i>$co{'author_name'}</i></td>\n" .
"<td>" . $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit"}, escapeHTML($co{'title'})) . "</td>\n" . "<td>" . $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit", -class => "list"}, "<b>" . escapeHTML($co{'title'}) . "</b>") . "</td>\n" .
"<td class=\"link\">" . "<td class=\"link\">" .
$cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit"}, "commit") . $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit"}, "commit") .
" | " . $cgi->a({-href => "$my_uri?p=$project;a=commitdiff;h=$commit"}, "commitdiff") . " | " . $cgi->a({-href => "$my_uri?p=$project;a=commitdiff;h=$commit"}, "commitdiff") .
@ -770,8 +764,9 @@ sub git_summary {
my %tag = %$entry; my %tag = %$entry;
print "<tr>\n"; print "<tr>\n";
if (--$i > 0) { if (--$i > 0) {
print "<td>$tag{'age'}</td>\n" . print "<td><i>$tag{'age'}</i></td>\n" .
"<td>" . $cgi->a({-href => "$my_uri?p=$project;a=$tag{'type'};h=$tag{'id'}"}, escapeHTML($tag{'name'})) . "</td>\n" . "<td>" . $cgi->a({-href => "$my_uri?p=$project;a=$tag{'type'};h=$tag{'id'}", -class => "list"}, "<b>" . escapeHTML($tag{'name'}) . "</b>") . "</td>\n" .
"<td class=\"link\">" . $cgi->a({-href => "$my_uri?p=$project;a=$tag{'type'};h=$tag{'id'}"}, $tag{'type'}) . "</td>\n" .
"</tr>"; "</tr>";
} else { } else {
print "<td>" . $cgi->a({-href => "$my_uri?p=$project;a=tags"}, "...") . "</td>\n" . print "<td>" . $cgi->a({-href => "$my_uri?p=$project;a=tags"}, "...") . "</td>\n" .
@ -795,8 +790,9 @@ sub git_summary {
my %tag = %$entry; my %tag = %$entry;
print "<tr>\n"; print "<tr>\n";
if (--$i > 0) { if (--$i > 0) {
print "<td>$tag{'age'}</td>\n" . print "<td><i>$tag{'age'}</i></td>\n" .
"<td>" . $cgi->a({-href => "$my_uri?p=$project;a=log;h=$tag{'id'}"}, escapeHTML($tag{'name'})) . "</td>\n" . "<td>" . $cgi->a({-href => "$my_uri?p=$project;a=log;h=$tag{'id'}", -class => "list"}, "<b>" . escapeHTML($tag{'name'}) . "</b>") . "</td>\n" .
"<td class=\"link\">" . $cgi->a({-href => "$my_uri?p=$project;a=log;h=$tag{'id'}"}, "log") . "</td>\n" .
"</tr>"; "</tr>";
} else { } else {
print "<td>" . $cgi->a({-href => "$my_uri?p=$project;a=branches"}, "...") . "</td>\n" . print "<td>" . $cgi->a({-href => "$my_uri?p=$project;a=branches"}, "...") . "</td>\n" .
@ -823,16 +819,20 @@ sub git_tags {
print "<div>\n" . print "<div>\n" .
$cgi->a({-href => "$my_uri?p=$project;a=summary", -class => "title"}, "tags") . $cgi->a({-href => "$my_uri?p=$project;a=summary", -class => "title"}, "tags") .
"</div>\n"; "</div>\n";
print "<div class=\"page_body\">\n" .
"<table cellspacing=\"0\">\n";
if (defined @$taglist) { if (defined @$taglist) {
foreach my $entry (@$taglist) { foreach my $entry (@$taglist) {
my %tag = %$entry; my %tag = %$entry;
print "<div class=\"list\">\n" . print "<tr>\n" .
$cgi->a({-href => "$my_uri?p=$project;a=$tag{'type'};h=$tag{'id'}"}, "<td><i>$tag{'age'}</i></td>\n" .
"<span class=\"age\">$tag{'age'}</span>" . escapeHTML($tag{'name'})) . "\n" . "<td>" . $cgi->a({-href => "$my_uri?p=$project;a=log;h=$tag{'id'}", -class => "list"}, "<b>" . escapeHTML($tag{'name'}) . "</b>") . "</td>\n" .
"<td class=\"link\">" . $cgi->a({-href => "$my_uri?p=$project;a=$tag{'type'};h=$tag{'id'}"}, $tag{'type'}) . "</td>\n" .
"</tr>";
}
}
print "</table\n>" .
"</div>\n"; "</div>\n";
}
}
print "<div class=\"list\"><br/></div>\n";
git_footer_html(); git_footer_html();
} }
@ -849,16 +849,20 @@ sub git_branches {
print "<div>\n" . print "<div>\n" .
$cgi->a({-href => "$my_uri?p=$project;a=summary", -class => "title"}, "branches") . $cgi->a({-href => "$my_uri?p=$project;a=summary", -class => "title"}, "branches") .
"</div>\n"; "</div>\n";
print "<div class=\"page_body\">\n" .
"<table cellspacing=\"0\">\n";
if (defined @$taglist) { if (defined @$taglist) {
foreach my $entry (@$taglist) { foreach my $entry (@$taglist) {
my %tag = %$entry; my %tag = %$entry;
print "<div class=\"list\">\n" . print "<tr>\n" .
$cgi->a({-href => "$my_uri?p=$project;a=log;h=$tag{'id'}"}, "<td><i>$tag{'age'}</i></td>\n" .
"<span class=\"age\">$tag{'age'}</span>" . escapeHTML($tag{'name'})) . "\n" . "<td>" . $cgi->a({-href => "$my_uri?p=$project;a=log;h=$tag{'id'}", -class => "list"}, "<b>" . escapeHTML($tag{'name'}) . "</b>") . "</td>\n" .
"<td class=\"link\">" . $cgi->a({-href => "$my_uri?p=$project;a=log;h=$tag{'id'}"}, "log") . "</td>\n" .
"</tr>";
}
}
print "</table\n>" .
"</div>\n"; "</div>\n";
}
}
print "<div class=\"list\"><br/></div>\n";
git_footer_html(); git_footer_html();
} }
@ -942,10 +946,10 @@ sub git_tree {
my $base = $hash_base || git_read_hash("$project/HEAD"); my $base = $hash_base || git_read_hash("$project/HEAD");
$hash = git_get_hash_by_path($base, $file_name, "tree"); $hash = git_get_hash_by_path($base, $file_name, "tree");
} }
}
if (!defined $hash_base) { if (!defined $hash_base) {
$hash_base = git_read_hash("$project/HEAD"); $hash_base = git_read_hash("$project/HEAD");
} }
}
open my $fd, "-|", "$gitbin/git-ls-tree $hash" || die_error(undef, "Open git-ls-tree failed."); open my $fd, "-|", "$gitbin/git-ls-tree $hash" || die_error(undef, "Open git-ls-tree failed.");
my (@entries) = map { chomp; $_ } <$fd>; my (@entries) = map { chomp; $_ } <$fd>;
close $fd || die_error(undef, "Reading tree failed."); close $fd || die_error(undef, "Reading tree failed.");
@ -988,15 +992,17 @@ sub git_tree {
my $t_name = $4; my $t_name = $4;
$file_key = ";f=$base$t_name"; $file_key = ";f=$base$t_name";
print "<tr>\n" . print "<tr>\n" .
"<td class=\"pre\">" . mode_str($t_mode) . "</td>\n"; "<td style=\"font-family:monospace\">" . mode_str($t_mode) . "</td>\n";
if ($t_type eq "blob") { if ($t_type eq "blob") {
print "<td class=\"pre\">$t_name</td>\n"; print "<td class=\"list\">" .
$cgi->a({-href => "$my_uri?p=$project;a=blob;h=$t_hash" . $base_key . $file_key, -class => "list"}, $t_name) .
"</td>\n";
print "<td class=\"link\">" . print "<td class=\"link\">" .
$cgi->a({-href => "$my_uri?p=$project;a=blob;h=$t_hash" . $base_key . $file_key}, "blob") . $cgi->a({-href => "$my_uri?p=$project;a=blob;h=$t_hash" . $base_key . $file_key}, "blob") .
" | " . $cgi->a({-href => "$my_uri?p=$project;a=history;h=$hash_base" . $file_key}, "history") . " | " . $cgi->a({-href => "$my_uri?p=$project;a=history;h=$hash_base" . $file_key}, "history") .
"</td>\n"; "</td>\n";
} elsif ($t_type eq "tree") { } elsif ($t_type eq "tree") {
print "<td class=\"pre\">" . print "<td class=\"list\">" .
$cgi->a({-href => "$my_uri?p=$project;a=tree;h=$t_hash" . $base_key . $file_key}, $t_name) . $cgi->a({-href => "$my_uri?p=$project;a=tree;h=$t_hash" . $base_key . $file_key}, $t_name) .
"</td>\n"; "</td>\n";
} }
@ -1089,7 +1095,7 @@ sub git_log {
my $comment = $co{'comment'}; my $comment = $co{'comment'};
my $empty = 0; my $empty = 0;
foreach my $line (@$comment) { foreach my $line (@$comment) {
if ($line =~ m/^(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i) { if ($line =~ m/^ *(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i) {
next; next;
} }
if ($line eq "") { if ($line eq "") {
@ -1159,12 +1165,12 @@ sub git_commit {
print "</td></tr>\n"; print "</td></tr>\n";
print "<tr><td>committer</td><td>" . escapeHTML($co{'committer'}) . "</td></tr>\n"; print "<tr><td>committer</td><td>" . escapeHTML($co{'committer'}) . "</td></tr>\n";
print "<tr><td></td><td> $cd{'rfc2822'}" . sprintf(" (%02d:%02d %s)", $cd{'hour_local'}, $cd{'minute_local'}, $cd{'tz_local'}) . "</td></tr>\n"; print "<tr><td></td><td> $cd{'rfc2822'}" . sprintf(" (%02d:%02d %s)", $cd{'hour_local'}, $cd{'minute_local'}, $cd{'tz_local'}) . "</td></tr>\n";
print "<tr><td>commit</td><td style=\"font-family: monospace;\">$hash</td></tr>\n"; print "<tr><td>commit</td><td style=\"font-family:monospace\">$hash</td></tr>\n";
print "<tr><td>tree</td><td style=\"font-family: monospace;\">" . print "<tr><td>tree</td><td style=\"font-family:monospace\">" .
$cgi->a({-href => "$my_uri?p=$project;a=tree;h=$co{'tree'};hb=$hash"}, $co{'tree'}) . "</td></tr>\n"; $cgi->a({-href => "$my_uri?p=$project;a=tree;h=$co{'tree'};hb=$hash"}, $co{'tree'}) . "</td></tr>\n";
my $parents = $co{'parents'}; my $parents = $co{'parents'};
foreach my $par (@$parents) { foreach my $par (@$parents) {
print "<tr><td>parent</td><td style=\"font-family: monospace;\">" . print "<tr><td>parent</td><td style=\"font-family:monospace\">" .
$cgi->a({-href => "$my_uri?p=$project;a=commit;h=$par"}, $par) . "</td></tr>\n"; $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$par"}, $par) . "</td></tr>\n";
} }
print "</table>". print "</table>".
@ -1183,7 +1189,7 @@ sub git_commit {
} else { } else {
$empty = 0; $empty = 0;
} }
if ($line =~ m/^(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i) { if ($line =~ m/^ *(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i) {
$signed = 1; $signed = 1;
print "<span style=\"color: #888888\">" . escapeHTML($line) . "</span><br/>\n"; print "<span style=\"color: #888888\">" . escapeHTML($line) . "</span><br/>\n";
} else { } else {
@ -1197,6 +1203,8 @@ sub git_commit {
print(($#difftree + 1) . " files changed:\n"); print(($#difftree + 1) . " files changed:\n");
} }
print "</div>\n"; print "</div>\n";
print "<div class=\"page_body\">\n" .
"<table cellspacing=\"0\">\n";
foreach my $line (@difftree) { foreach my $line (@difftree) {
# '*100644->100644 blob 9f91a116d91926df3ba936a80f020a6ab1084d2b->bb90a0c3a91eb52020d0db0e8b4f94d30e02d596 net/ipv4/route.c' # '*100644->100644 blob 9f91a116d91926df3ba936a80f020a6ab1084d2b->bb90a0c3a91eb52020d0db0e8b4f94d30e02d596 net/ipv4/route.c'
# '+100644 blob 4a83ab6cd565d21ab0385bac6643826b83c2fcd4 arch/arm/lib/bitops.h' # '+100644 blob 4a83ab6cd565d21ab0385bac6643826b83c2fcd4 arch/arm/lib/bitops.h'
@ -1208,28 +1216,27 @@ sub git_commit {
my $type = $3; my $type = $3;
my $id = $4; my $id = $4;
my $file = $5; my $file = $5;
if ($type eq "blob") { if ($type ne "blob") {
next;
}
print "<tr>\n";
if ($op eq "+") { if ($op eq "+") {
my $mode_chng = ""; my $mode_chng = "";
if (S_ISREG(oct $mode)) { if (S_ISREG(oct $mode)) {
$mode_chng = sprintf(" with mode: %04o", (oct $mode) & 0777); $mode_chng = sprintf(" with mode: %04o", (oct $mode) & 0777);
} }
print "<div class=\"list\">\n" . print "<td>" .
$cgi->a({-href => "$my_uri?p=$project;a=blob;h=$id;hb=$hash;f=$file"}, $cgi->a({-href => "$my_uri?p=$project;a=blob;h=$id;hp=$hash;f=$file", -class => "list"}, escapeHTML($file)) . "</td>\n" .
escapeHTML($file) . " <span style=\"color: #008000;\">[new " . file_type($mode) . "$mode_chng]</span>") . "\n" . "<td><span style=\"color: #008000;\">[new " . file_type($mode) . "$mode_chng]</span></td>\n" .
"</div>\n"; "<td class=\"link\">" . $cgi->a({-href => "$my_uri?p=$project;a=blob;h=$id;hb=$hash;f=$file"}, "blob") . "</td>\n";
print "<div class=\"list_link\">\n" .
$cgi->a({-href => "$my_uri?p=$project;a=blob;h=$id;hb=$hash;f=$file"}, "blob") . "\n" .
"</div>\n";
} elsif ($op eq "-") { } elsif ($op eq "-") {
print "<div class=\"list\">\n" . print "<td>" .
$cgi->a({-href => "$my_uri?p=$project;a=blob;h=$id;hb=$hash;f=$file"}, $cgi->a({-href => "$my_uri?p=$project;a=blob;h=$id;hb=$hash;f=$file", -class => "list"}, escapeHTML($file)) . "</td>\n" .
escapeHTML($file) . " <span style=\"color: #c00000;\">[deleted " . file_type($mode) . "]</span>") . "\n" . "<td><span style=\"color: #c00000;\">[deleted " . file_type($mode). "]</span></td>\n" .
"</div>"; "<td class=\"link\">" .
print "<div class=\"list_link\">\n" . $cgi->a({-href => "$my_uri?p=$project;a=blob;h=$id;hb=$hash;f=$file"}, "blob") .
$cgi->a({-href => "$my_uri?p=$project;a=blob;h=$id;hb=$hash;f=$file"}, "blob") . " | " . " | " . $cgi->a({-href => "$my_uri?p=$project;a=history;h=$hash;f=$file"}, "history") .
$cgi->a({-href => "$my_uri?p=$project;a=history;h=$hash;f=$file"}, "history") . "\n" . "</td>\n"
"</div>\n";
} elsif ($op eq "*") { } elsif ($op eq "*") {
$id =~ m/([0-9a-fA-F]+)->([0-9a-fA-F]+)/; $id =~ m/([0-9a-fA-F]+)->([0-9a-fA-F]+)/;
my $from_id = $1; my $from_id = $1;
@ -1252,26 +1259,26 @@ sub git_commit {
} }
$mode_chnge .= "]</span>\n"; $mode_chnge .= "]</span>\n";
} }
print "<div class=\"list\">\n"; print "<td>";
if ($to_id ne $from_id) { if ($to_id ne $from_id) {
print $cgi->a({-href => "$my_uri?p=$project;a=blobdiff;h=$to_id;hp=$from_id;hb=$hash;f=$file"}, print $cgi->a({-href => "$my_uri?p=$project;a=blobdiff;h=$to_id;hp=$from_id;hb=$hash;f=$file", -class => "list"}, escapeHTML($file));
escapeHTML($file) . $mode_chnge) . "\n" .
"</div>\n";
} else { } else {
print $cgi->a({-href => "$my_uri?p=$project;a=blob;h=$to_id;hb=$hash;f=$file"}, print $cgi->a({-href => "$my_uri?p=$project;a=blob;h=$to_id;hb=$hash;f=$file", -class => "list"}, escapeHTML($file));
escapeHTML($file) . $mode_chnge) . "\n" .
"</div>\n";
} }
print "<div class=\"list_link\">\n"; print "</td>\n" .
"<td>$mode_chnge</td>\n" .
"<td class=\"link\">";
print $cgi->a({-href => "$my_uri?p=$project;a=blob;h=$to_id;hb=$hash;f=$file"}, "blob");
if ($to_id ne $from_id) { if ($to_id ne $from_id) {
print $cgi->a({-href => "$my_uri?p=$project;a=blobdiff;h=$to_id;hp=$from_id;hb=$hash;f=$file"}, "diff") . " | "; print " | " . $cgi->a({-href => "$my_uri?p=$project;a=blobdiff;h=$to_id;hp=$from_id;hb=$hash;f=$file"}, "diff");
} }
print $cgi->a({-href => "$my_uri?p=$project;a=blob;h=$to_id;hb=$hash;f=$file"}, "blob") . " | " . print " | " . $cgi->a({-href => "$my_uri?p=$project;a=history;h=$hash;f=$file"}, "history") . "\n";
$cgi->a({-href => "$my_uri?p=$project;a=history;h=$hash;f=$file"}, "history") . "\n" . print "</td>\n";
}
print "</tr>\n";
}
print "</table><br/>\n" .
"</div>\n"; "</div>\n";
}
}
}
git_footer_html(); git_footer_html();
} }
@ -1344,7 +1351,7 @@ sub git_commitdiff {
shift @log; shift @log;
} }
foreach my $line (@log) { foreach my $line (@log) {
if ($line =~ m/^(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i) { if ($line =~ m/^ *(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i) {
next; next;
} }
if ($line eq "") { if ($line eq "") {
@ -1421,8 +1428,11 @@ sub git_history {
print "<div class=\"page_path\">\n" . print "<div class=\"page_path\">\n" .
"/$file_name<br/>\n"; "/$file_name<br/>\n";
print "</div>\n"; print "</div>\n";
open my $fd, "-|", "$gitbin/git-rev-list $hash | $gitbin/git-diff-tree -r --stdin $file_name"; open my $fd, "-|", "$gitbin/git-rev-list $hash | $gitbin/git-diff-tree -r --stdin $file_name";
my $commit; my $commit;
print "<div class=\"page_body\">\n" .
"<table cellspacing=\"0\">\n";
while (my $line = <$fd>) { while (my $line = <$fd>) {
if ($line =~ m/^([0-9a-fA-F]{40}) /){ if ($line =~ m/^([0-9a-fA-F]{40}) /){
$commit = $1; $commit = $1;
@ -1438,11 +1448,11 @@ sub git_history {
if (!%co) { if (!%co) {
next; next;
} }
print "<div class=\"list\">\n" . print "<tr>" .
$cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit"}, "<td><i>$co{'age_string'}</i></td>\n" .
"<span class=\"age\">$co{'age_string'}</span>" . escapeHTML($co{'title'})) . "\n" . "<td><i>$co{'author_name'}</i></td>\n" .
"</div>\n"; "<td>" . $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit", -class => "list"}, "<b>" . escapeHTML($co{'title'}) . "</b>") . "</td>\n" .
print "<div class=\"list_link\">\n" . "<td class=\"link\">" .
$cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit"}, "commit") . $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit"}, "commit") .
" | " . $cgi->a({-href => "$my_uri?p=$project;a=tree;h=" . $co{'tree'} . ";hb=$commit"}, "tree") . " | " . $cgi->a({-href => "$my_uri?p=$project;a=tree;h=" . $co{'tree'} . ";hb=$commit"}, "tree") .
" | " . $cgi->a({-href => "$my_uri?p=$project;a=blob;hb=$commit;f=$file"}, "blob"); " | " . $cgi->a({-href => "$my_uri?p=$project;a=blob;hb=$commit;f=$file"}, "blob");
@ -1451,11 +1461,13 @@ sub git_history {
if (defined $blob && defined $blob_parent && $blob ne $blob_parent) { if (defined $blob && defined $blob_parent && $blob ne $blob_parent) {
print " | " . $cgi->a({-href => "$my_uri?p=$project;a=blobdiff;h=$blob;hp=$blob_parent;hb=$commit;f=$file"}, "diff"); print " | " . $cgi->a({-href => "$my_uri?p=$project;a=blobdiff;h=$blob;hp=$blob_parent;hb=$commit;f=$file"}, "diff");
} }
print "<br/>\n" . print "</td>\n" .
"</div>\n"; "</tr>\n";
undef $commit; undef $commit;
} }
} }
print "</table><br/>\n" .
"</div>\n";
close $fd; close $fd;
git_footer_html(); git_footer_html();
} }