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>
Jakub Narebski committed
Apr 1, 2007 at 22:21 UTC
a23f0a73d10542297249b3c57cad0b7cd63b87be
1 file changed
+24
-24
gitweb/gitweb.perl
+24
-24
@@ -1800,7 +1800,7 @@ EOF
1800
$cgi->hidden(-name => "a") . "\n" .
1801
$cgi->hidden(-name => "h") . "\n" .
1802
$cgi->popup_menu(-name => 'st', -default => 'commit',
1803
- -values => ['commit', 'author', 'committer', 'pickaxe']) .
1803
+ -values => ['commit', 'author', 'committer', 'pickaxe']) .
1804
$cgi->sup($cgi->a({-href => href(action=>"search_help")}, "?")) .
1805
" search:\n",
1806
$cgi->textfield(-name => "s", -value => $searchtext) . "\n" .
@@ -3095,7 +3095,7 @@ sub git_summary {
3095
git_project_list_body(\@forklist, undef, 0, 15,
3096
$#forklist <= 15 ? undef :
3097
$cgi->a({-href => href(action=>"forks")}, "..."),
3098
- 'noheader');
3098
+ 'noheader');
3099
}
3100
3101
git_footer_html();
@@ -3202,7 +3202,7 @@ HTML
3202
my $rev = substr($full_rev, 0, 8);
3203
my $author = $meta->{'author'};
3204
my %date = parse_date($meta->{'author-time'},
3205
- $meta->{'author-tz'});
3205
+ $meta->{'author-tz'});
3206
my $date = $date{'iso-tz'};
3207
if ($group_size) {
3208
$current_color = ++$current_color % $num_colors;
@@ -3214,9 +3214,9 @@ HTML
3214
print " rowspan=\"$group_size\"" if ($group_size > 1);
3215
print ">";
3216
print $cgi->a({-href => href(action=>"commit",
3217
- hash=>$full_rev,
3218
- file_name=>$file_name)},
3219
- esc_html($rev));
3217
+ hash=>$full_rev,
3218
+ file_name=>$file_name)},
3219
+ esc_html($rev));
3220
print "</td>\n";
3221
}
3222
open (my $dd, "-|", git_cmd(), "rev-parse", "$full_rev^")
@@ -3225,13 +3225,13 @@ HTML
3225
close $dd;
3226
chomp($parent_commit);
3227
my $blamed = href(action => 'blame',
3228
- file_name => $meta->{'filename'},
3229
- hash_base => $parent_commit);
3228
+ file_name => $meta->{'filename'},
3229
+ hash_base => $parent_commit);
3230
print "<td class=\"linenr\">";
3231
print $cgi->a({ -href => "$blamed#l$orig_lineno",
3232
- -id => "l$lineno",
3233
- -class => "linenr" },
3234
- esc_html($lineno));
3232
+ -id => "l$lineno",
3233
+ -class => "linenr" },
3234
+ esc_html($lineno));
3235
print "</td>";
3236
print "<td class=\"pre\">" . esc_html($data) . "</td>\n";
3237
print "</tr>\n";
@@ -3621,7 +3621,7 @@ sub git_snapshot {
3621
my $name = $project;
3622
$name =~ s/\047/\047\\\047\047/g;
3623
open my $fd, "-|",
3624
- "$git archive --format=tar --prefix=\'$name\'/ $hash | $command"
3624
+ "$git archive --format=tar --prefix=\'$name\'/ $hash | $command"
3625
or die_error(undef, "Execute git-tar-tree failed");
3626
binmode STDOUT, ':raw';
3627
print <$fd>;
@@ -3734,7 +3734,7 @@ sub git_commit {
3734
# difftree output is not printed for merges
3735
open my $fd, "-|", git_cmd(), "diff-tree", '-r', "--no-commit-id",
3736
@diff_opts, $parent, $hash, "--"
3737
- or die_error(undef, "Open git-diff-tree failed");
3737
+ or die_error(undef, "Open git-diff-tree failed");
3738
@difftree = map { chomp; $_ } <$fd>;
3739
close $fd or die_error(undef, "Reading git-diff-tree failed");
3740
}
@@ -4304,13 +4304,13 @@ sub git_search {
4304
if ($page > 0) {
4305
$paging_nav .=
4306
$cgi->a({-href => href(action=>"search", hash=>$hash,
4307
- searchtext=>$searchtext, searchtype=>$searchtype)},
4308
- "first");
4307
+ searchtext=>$searchtext, searchtype=>$searchtype)},
4308
+ "first");
4309
$paging_nav .= " ⋅ " .
4310
$cgi->a({-href => href(action=>"search", hash=>$hash,
4311
- searchtext=>$searchtext, searchtype=>$searchtype,
4312
- page=>$page-1),
4313
- -accesskey => "p", -title => "Alt-p"}, "prev");
4311
+ searchtext=>$searchtext, searchtype=>$searchtype,
4312
+ page=>$page-1),
4313
+ -accesskey => "p", -title => "Alt-p"}, "prev");
4314
} else {
4315
$paging_nav .= "first";
4316
$paging_nav .= " ⋅ prev";
@@ -4318,9 +4318,9 @@ sub git_search {
4318
if ($#commitlist >= 100) {
4319
$paging_nav .= " ⋅ " .
4320
$cgi->a({-href => href(action=>"search", hash=>$hash,
4321
- searchtext=>$searchtext, searchtype=>$searchtype,
4322
- page=>$page+1),
4323
- -accesskey => "n", -title => "Alt-n"}, "next");
4321
+ searchtext=>$searchtext, searchtype=>$searchtype,
4322
+ page=>$page+1),
4323
+ -accesskey => "n", -title => "Alt-n"}, "next");
4324
} else {
4325
$paging_nav .= " ⋅ next";
4326
}
@@ -4328,9 +4328,9 @@ sub git_search {
4328
if ($#commitlist >= 100) {
4329
$next_link =
4330
$cgi->a({-href => href(action=>"search", hash=>$hash,
4331
- searchtext=>$searchtext, searchtype=>$searchtype,
4332
- page=>$page+1),
4333
- -accesskey => "n", -title => "Alt-n"}, "next");
4331
+ searchtext=>$searchtext, searchtype=>$searchtype,
4332
+ page=>$page+1),
4333
+ -accesskey => "n", -title => "Alt-n"}, "next");
4334
}
4335
4336
git_print_page_nav('','', $hash,$co{'tree'},$hash, $paging_nav);