gitweb: Whitespace cleanup - tabs are for indent, spaces are for align (2)
Code should be aligned the same way, regardless of tab size. Use tabs for indent, but spaces for align. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
5ea0921cbe
commit
e7fb022a42
@ -1671,13 +1671,13 @@ sub git_print_tree_entry {
|
|||||||
if ($t->{'type'} eq "blob") {
|
if ($t->{'type'} eq "blob") {
|
||||||
print "<td class=\"list\">" .
|
print "<td class=\"list\">" .
|
||||||
$cgi->a({-href => href(action=>"blob", hash=>$t->{'hash'},
|
$cgi->a({-href => href(action=>"blob", hash=>$t->{'hash'},
|
||||||
file_name=>"$basedir$t->{'name'}", %base_key),
|
file_name=>"$basedir$t->{'name'}", %base_key),
|
||||||
-class => "list"}, esc_html($t->{'name'})) . "</td>\n";
|
-class => "list"}, esc_html($t->{'name'})) . "</td>\n";
|
||||||
print "<td class=\"link\">";
|
print "<td class=\"link\">";
|
||||||
if ($have_blame) {
|
if ($have_blame) {
|
||||||
print $cgi->a({-href => href(action=>"blame", hash=>$t->{'hash'},
|
print $cgi->a({-href => href(action=>"blame", hash=>$t->{'hash'},
|
||||||
file_name=>"$basedir$t->{'name'}", %base_key)},
|
file_name=>"$basedir$t->{'name'}", %base_key)},
|
||||||
"blame");
|
"blame");
|
||||||
}
|
}
|
||||||
if (defined $hash_base) {
|
if (defined $hash_base) {
|
||||||
if ($have_blame) {
|
if ($have_blame) {
|
||||||
@ -1689,8 +1689,8 @@ sub git_print_tree_entry {
|
|||||||
}
|
}
|
||||||
print " | " .
|
print " | " .
|
||||||
$cgi->a({-href => href(action=>"blob_plain", hash_base=>$hash_base,
|
$cgi->a({-href => href(action=>"blob_plain", hash_base=>$hash_base,
|
||||||
file_name=>"$basedir$t->{'name'}")},
|
file_name=>"$basedir$t->{'name'}")},
|
||||||
"raw");
|
"raw");
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
|
|
||||||
} elsif ($t->{'type'} eq "tree") {
|
} elsif ($t->{'type'} eq "tree") {
|
||||||
@ -1758,7 +1758,7 @@ sub git_difftree_body {
|
|||||||
print "<td>";
|
print "<td>";
|
||||||
print $cgi->a({-href => href(action=>"blob", hash=>$diff{'to_id'},
|
print $cgi->a({-href => href(action=>"blob", hash=>$diff{'to_id'},
|
||||||
hash_base=>$hash, file_name=>$diff{'file'}),
|
hash_base=>$hash, file_name=>$diff{'file'}),
|
||||||
-class => "list"}, esc_html($diff{'file'}));
|
-class => "list"}, esc_html($diff{'file'}));
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
print "<td>$mode_chng</td>\n";
|
print "<td>$mode_chng</td>\n";
|
||||||
print "<td class=\"link\">";
|
print "<td class=\"link\">";
|
||||||
@ -1785,11 +1785,11 @@ sub git_difftree_body {
|
|||||||
print " | ";
|
print " | ";
|
||||||
}
|
}
|
||||||
print $cgi->a({-href => href(action=>"blame", hash_base=>$parent,
|
print $cgi->a({-href => href(action=>"blame", hash_base=>$parent,
|
||||||
file_name=>$diff{'file'})},
|
file_name=>$diff{'file'})},
|
||||||
"blame") . " | ";
|
"blame") . " | ";
|
||||||
print $cgi->a({-href => href(action=>"history", hash_base=>$parent,
|
print $cgi->a({-href => href(action=>"history", hash_base=>$parent,
|
||||||
file_name=>$diff{'file'})},
|
file_name=>$diff{'file'})},
|
||||||
"history");
|
"history");
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
|
|
||||||
} elsif ($diff{'status'} eq "M" || $diff{'status'} eq "T") { # modified, or type changed
|
} elsif ($diff{'status'} eq "M" || $diff{'status'} eq "T") { # modified, or type changed
|
||||||
@ -1810,8 +1810,8 @@ sub git_difftree_body {
|
|||||||
}
|
}
|
||||||
print "<td>";
|
print "<td>";
|
||||||
print $cgi->a({-href => href(action=>"blob", hash=>$diff{'to_id'},
|
print $cgi->a({-href => href(action=>"blob", hash=>$diff{'to_id'},
|
||||||
hash_base=>$hash, file_name=>$diff{'file'}),
|
hash_base=>$hash, file_name=>$diff{'file'}),
|
||||||
-class => "list"}, esc_html($diff{'file'}));
|
-class => "list"}, esc_html($diff{'file'}));
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
print "<td>$mode_chnge</td>\n";
|
print "<td>$mode_chnge</td>\n";
|
||||||
print "<td class=\"link\">";
|
print "<td class=\"link\">";
|
||||||
@ -1822,19 +1822,19 @@ sub git_difftree_body {
|
|||||||
print $cgi->a({-href => "#patch$patchno"}, "patch");
|
print $cgi->a({-href => "#patch$patchno"}, "patch");
|
||||||
} else {
|
} else {
|
||||||
print $cgi->a({-href => href(action=>"blobdiff",
|
print $cgi->a({-href => href(action=>"blobdiff",
|
||||||
hash=>$diff{'to_id'}, hash_parent=>$diff{'from_id'},
|
hash=>$diff{'to_id'}, hash_parent=>$diff{'from_id'},
|
||||||
hash_base=>$hash, hash_parent_base=>$parent,
|
hash_base=>$hash, hash_parent_base=>$parent,
|
||||||
file_name=>$diff{'file'})},
|
file_name=>$diff{'file'})},
|
||||||
"diff");
|
"diff");
|
||||||
}
|
}
|
||||||
print " | ";
|
print " | ";
|
||||||
}
|
}
|
||||||
print $cgi->a({-href => href(action=>"blame", hash_base=>$hash,
|
print $cgi->a({-href => href(action=>"blame", hash_base=>$hash,
|
||||||
file_name=>$diff{'file'})},
|
file_name=>$diff{'file'})},
|
||||||
"blame") . " | ";
|
"blame") . " | ";
|
||||||
print $cgi->a({-href => href(action=>"history", hash_base=>$hash,
|
print $cgi->a({-href => href(action=>"history", hash_base=>$hash,
|
||||||
file_name=>$diff{'file'})},
|
file_name=>$diff{'file'})},
|
||||||
"history");
|
"history");
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
|
|
||||||
} elsif ($diff{'status'} eq "R" || $diff{'status'} eq "C") { # renamed or copied
|
} elsif ($diff{'status'} eq "R" || $diff{'status'} eq "C") { # renamed or copied
|
||||||
@ -1862,19 +1862,19 @@ sub git_difftree_body {
|
|||||||
print $cgi->a({-href => "#patch$patchno"}, "patch");
|
print $cgi->a({-href => "#patch$patchno"}, "patch");
|
||||||
} else {
|
} else {
|
||||||
print $cgi->a({-href => href(action=>"blobdiff",
|
print $cgi->a({-href => href(action=>"blobdiff",
|
||||||
hash=>$diff{'to_id'}, hash_parent=>$diff{'from_id'},
|
hash=>$diff{'to_id'}, hash_parent=>$diff{'from_id'},
|
||||||
hash_base=>$hash, hash_parent_base=>$parent,
|
hash_base=>$hash, hash_parent_base=>$parent,
|
||||||
file_name=>$diff{'to_file'}, file_parent=>$diff{'from_file'})},
|
file_name=>$diff{'to_file'}, file_parent=>$diff{'from_file'})},
|
||||||
"diff");
|
"diff");
|
||||||
}
|
}
|
||||||
print " | ";
|
print " | ";
|
||||||
}
|
}
|
||||||
print $cgi->a({-href => href(action=>"blame", hash_base=>$parent,
|
print $cgi->a({-href => href(action=>"blame", hash_base=>$parent,
|
||||||
file_name=>$diff{'from_file'})},
|
file_name=>$diff{'from_file'})},
|
||||||
"blame") . " | ";
|
"blame") . " | ";
|
||||||
print $cgi->a({-href => href(action=>"history", hash_base=>$parent,
|
print $cgi->a({-href => href(action=>"history", hash_base=>$parent,
|
||||||
file_name=>$diff{'from_file'})},
|
file_name=>$diff{'from_file'})},
|
||||||
"history");
|
"history");
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
|
|
||||||
} # we should not encounter Unmerged (U) or Unknown (X) status
|
} # we should not encounter Unmerged (U) or Unknown (X) status
|
||||||
@ -2800,7 +2800,7 @@ sub git_tree {
|
|||||||
# FIXME: Should be available when we have no hash base as well.
|
# FIXME: Should be available when we have no hash base as well.
|
||||||
push @views_nav,
|
push @views_nav,
|
||||||
$cgi->a({-href => href(action=>"snapshot", hash=>$hash)},
|
$cgi->a({-href => href(action=>"snapshot", hash=>$hash)},
|
||||||
"snapshot");
|
"snapshot");
|
||||||
}
|
}
|
||||||
git_print_page_nav('tree','', $hash_base, undef, undef, join(' | ', @views_nav));
|
git_print_page_nav('tree','', $hash_base, undef, undef, join(' | ', @views_nav));
|
||||||
git_print_header_div('commit', esc_html($co{'title'}) . $ref, $hash_base);
|
git_print_header_div('commit', esc_html($co{'title'}) . $ref, $hash_base);
|
||||||
|
Loading…
Reference in New Issue
Block a user