gitweb: Whitespace cleanup - tabs are for indent, spaces are for align (3)
Code should be look the same way, regardless of tab size. Use tabs for indent, but spaces for align. Indent continued part of command spanning multiple lines, but only once. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
c0718268e8
commit
a23f0a73d1
@ -1800,7 +1800,7 @@ EOF
|
|||||||
$cgi->hidden(-name => "a") . "\n" .
|
$cgi->hidden(-name => "a") . "\n" .
|
||||||
$cgi->hidden(-name => "h") . "\n" .
|
$cgi->hidden(-name => "h") . "\n" .
|
||||||
$cgi->popup_menu(-name => 'st', -default => 'commit',
|
$cgi->popup_menu(-name => 'st', -default => 'commit',
|
||||||
-values => ['commit', 'author', 'committer', 'pickaxe']) .
|
-values => ['commit', 'author', 'committer', 'pickaxe']) .
|
||||||
$cgi->sup($cgi->a({-href => href(action=>"search_help")}, "?")) .
|
$cgi->sup($cgi->a({-href => href(action=>"search_help")}, "?")) .
|
||||||
" search:\n",
|
" search:\n",
|
||||||
$cgi->textfield(-name => "s", -value => $searchtext) . "\n" .
|
$cgi->textfield(-name => "s", -value => $searchtext) . "\n" .
|
||||||
@ -3095,7 +3095,7 @@ sub git_summary {
|
|||||||
git_project_list_body(\@forklist, undef, 0, 15,
|
git_project_list_body(\@forklist, undef, 0, 15,
|
||||||
$#forklist <= 15 ? undef :
|
$#forklist <= 15 ? undef :
|
||||||
$cgi->a({-href => href(action=>"forks")}, "..."),
|
$cgi->a({-href => href(action=>"forks")}, "..."),
|
||||||
'noheader');
|
'noheader');
|
||||||
}
|
}
|
||||||
|
|
||||||
git_footer_html();
|
git_footer_html();
|
||||||
@ -3202,7 +3202,7 @@ HTML
|
|||||||
my $rev = substr($full_rev, 0, 8);
|
my $rev = substr($full_rev, 0, 8);
|
||||||
my $author = $meta->{'author'};
|
my $author = $meta->{'author'};
|
||||||
my %date = parse_date($meta->{'author-time'},
|
my %date = parse_date($meta->{'author-time'},
|
||||||
$meta->{'author-tz'});
|
$meta->{'author-tz'});
|
||||||
my $date = $date{'iso-tz'};
|
my $date = $date{'iso-tz'};
|
||||||
if ($group_size) {
|
if ($group_size) {
|
||||||
$current_color = ++$current_color % $num_colors;
|
$current_color = ++$current_color % $num_colors;
|
||||||
@ -3214,9 +3214,9 @@ HTML
|
|||||||
print " rowspan=\"$group_size\"" if ($group_size > 1);
|
print " rowspan=\"$group_size\"" if ($group_size > 1);
|
||||||
print ">";
|
print ">";
|
||||||
print $cgi->a({-href => href(action=>"commit",
|
print $cgi->a({-href => href(action=>"commit",
|
||||||
hash=>$full_rev,
|
hash=>$full_rev,
|
||||||
file_name=>$file_name)},
|
file_name=>$file_name)},
|
||||||
esc_html($rev));
|
esc_html($rev));
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
}
|
}
|
||||||
open (my $dd, "-|", git_cmd(), "rev-parse", "$full_rev^")
|
open (my $dd, "-|", git_cmd(), "rev-parse", "$full_rev^")
|
||||||
@ -3225,13 +3225,13 @@ HTML
|
|||||||
close $dd;
|
close $dd;
|
||||||
chomp($parent_commit);
|
chomp($parent_commit);
|
||||||
my $blamed = href(action => 'blame',
|
my $blamed = href(action => 'blame',
|
||||||
file_name => $meta->{'filename'},
|
file_name => $meta->{'filename'},
|
||||||
hash_base => $parent_commit);
|
hash_base => $parent_commit);
|
||||||
print "<td class=\"linenr\">";
|
print "<td class=\"linenr\">";
|
||||||
print $cgi->a({ -href => "$blamed#l$orig_lineno",
|
print $cgi->a({ -href => "$blamed#l$orig_lineno",
|
||||||
-id => "l$lineno",
|
-id => "l$lineno",
|
||||||
-class => "linenr" },
|
-class => "linenr" },
|
||||||
esc_html($lineno));
|
esc_html($lineno));
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print "<td class=\"pre\">" . esc_html($data) . "</td>\n";
|
print "<td class=\"pre\">" . esc_html($data) . "</td>\n";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
@ -3621,7 +3621,7 @@ sub git_snapshot {
|
|||||||
my $name = $project;
|
my $name = $project;
|
||||||
$name =~ s/\047/\047\\\047\047/g;
|
$name =~ s/\047/\047\\\047\047/g;
|
||||||
open my $fd, "-|",
|
open my $fd, "-|",
|
||||||
"$git archive --format=tar --prefix=\'$name\'/ $hash | $command"
|
"$git archive --format=tar --prefix=\'$name\'/ $hash | $command"
|
||||||
or die_error(undef, "Execute git-tar-tree failed");
|
or die_error(undef, "Execute git-tar-tree failed");
|
||||||
binmode STDOUT, ':raw';
|
binmode STDOUT, ':raw';
|
||||||
print <$fd>;
|
print <$fd>;
|
||||||
@ -3734,7 +3734,7 @@ sub git_commit {
|
|||||||
# difftree output is not printed for merges
|
# difftree output is not printed for merges
|
||||||
open my $fd, "-|", git_cmd(), "diff-tree", '-r', "--no-commit-id",
|
open my $fd, "-|", git_cmd(), "diff-tree", '-r', "--no-commit-id",
|
||||||
@diff_opts, $parent, $hash, "--"
|
@diff_opts, $parent, $hash, "--"
|
||||||
or die_error(undef, "Open git-diff-tree failed");
|
or die_error(undef, "Open git-diff-tree failed");
|
||||||
@difftree = map { chomp; $_ } <$fd>;
|
@difftree = map { chomp; $_ } <$fd>;
|
||||||
close $fd or die_error(undef, "Reading git-diff-tree failed");
|
close $fd or die_error(undef, "Reading git-diff-tree failed");
|
||||||
}
|
}
|
||||||
@ -4304,13 +4304,13 @@ sub git_search {
|
|||||||
if ($page > 0) {
|
if ($page > 0) {
|
||||||
$paging_nav .=
|
$paging_nav .=
|
||||||
$cgi->a({-href => href(action=>"search", hash=>$hash,
|
$cgi->a({-href => href(action=>"search", hash=>$hash,
|
||||||
searchtext=>$searchtext, searchtype=>$searchtype)},
|
searchtext=>$searchtext, searchtype=>$searchtype)},
|
||||||
"first");
|
"first");
|
||||||
$paging_nav .= " ⋅ " .
|
$paging_nav .= " ⋅ " .
|
||||||
$cgi->a({-href => href(action=>"search", hash=>$hash,
|
$cgi->a({-href => href(action=>"search", hash=>$hash,
|
||||||
searchtext=>$searchtext, searchtype=>$searchtype,
|
searchtext=>$searchtext, searchtype=>$searchtype,
|
||||||
page=>$page-1),
|
page=>$page-1),
|
||||||
-accesskey => "p", -title => "Alt-p"}, "prev");
|
-accesskey => "p", -title => "Alt-p"}, "prev");
|
||||||
} else {
|
} else {
|
||||||
$paging_nav .= "first";
|
$paging_nav .= "first";
|
||||||
$paging_nav .= " ⋅ prev";
|
$paging_nav .= " ⋅ prev";
|
||||||
@ -4318,9 +4318,9 @@ sub git_search {
|
|||||||
if ($#commitlist >= 100) {
|
if ($#commitlist >= 100) {
|
||||||
$paging_nav .= " ⋅ " .
|
$paging_nav .= " ⋅ " .
|
||||||
$cgi->a({-href => href(action=>"search", hash=>$hash,
|
$cgi->a({-href => href(action=>"search", hash=>$hash,
|
||||||
searchtext=>$searchtext, searchtype=>$searchtype,
|
searchtext=>$searchtext, searchtype=>$searchtype,
|
||||||
page=>$page+1),
|
page=>$page+1),
|
||||||
-accesskey => "n", -title => "Alt-n"}, "next");
|
-accesskey => "n", -title => "Alt-n"}, "next");
|
||||||
} else {
|
} else {
|
||||||
$paging_nav .= " ⋅ next";
|
$paging_nav .= " ⋅ next";
|
||||||
}
|
}
|
||||||
@ -4328,9 +4328,9 @@ sub git_search {
|
|||||||
if ($#commitlist >= 100) {
|
if ($#commitlist >= 100) {
|
||||||
$next_link =
|
$next_link =
|
||||||
$cgi->a({-href => href(action=>"search", hash=>$hash,
|
$cgi->a({-href => href(action=>"search", hash=>$hash,
|
||||||
searchtext=>$searchtext, searchtype=>$searchtype,
|
searchtext=>$searchtext, searchtype=>$searchtype,
|
||||||
page=>$page+1),
|
page=>$page+1),
|
||||||
-accesskey => "n", -title => "Alt-n"}, "next");
|
-accesskey => "n", -title => "Alt-n"}, "next");
|
||||||
}
|
}
|
||||||
|
|
||||||
git_print_page_nav('','', $hash,$co{'tree'},$hash, $paging_nav);
|
git_print_page_nav('','', $hash,$co{'tree'},$hash, $paging_nav);
|
||||||
|
Loading…
Reference in New Issue
Block a user