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>
Jakub Narebski committed
Oct 21, 2006 at 17:52 UTC
e7fb022a42a83cbdb33e40f82ffca28eceb423c9
1 file changed
+30
-30
gitweb/gitweb.perl
+30
-30
@@ -1671,13 +1671,13 @@ sub git_print_tree_entry {
1671
if ($t->{'type'} eq "blob") {
1672
print "<td class=\"list\">" .
1673
$cgi->a({-href => href(action=>"blob", hash=>$t->{'hash'},
1674
- file_name=>"$basedir$t->{'name'}", %base_key),
1675
- -class => "list"}, esc_html($t->{'name'})) . "</td>\n";
1674
+ file_name=>"$basedir$t->{'name'}", %base_key),
1675
+ -class => "list"}, esc_html($t->{'name'})) . "</td>\n";
1676
print "<td class=\"link\">";
1677
if ($have_blame) {
1678
print $cgi->a({-href => href(action=>"blame", hash=>$t->{'hash'},
1679
- file_name=>"$basedir$t->{'name'}", %base_key)},
1680
- "blame");
1679
+ file_name=>"$basedir$t->{'name'}", %base_key)},
1680
+ "blame");
1681
}
1682
if (defined $hash_base) {
1683
if ($have_blame) {
@@ -1689,8 +1689,8 @@ sub git_print_tree_entry {
1689
}
1690
print " | " .
1691
$cgi->a({-href => href(action=>"blob_plain", hash_base=>$hash_base,
1692
- file_name=>"$basedir$t->{'name'}")},
1693
- "raw");
1692
+ file_name=>"$basedir$t->{'name'}")},
1693
+ "raw");
1694
print "</td>\n";
1695
1696
} elsif ($t->{'type'} eq "tree") {
@@ -1758,7 +1758,7 @@ sub git_difftree_body {
1758
print "<td>";
1759
print $cgi->a({-href => href(action=>"blob", hash=>$diff{'to_id'},
1760
hash_base=>$hash, file_name=>$diff{'file'}),
1761
- -class => "list"}, esc_html($diff{'file'}));
1761
+ -class => "list"}, esc_html($diff{'file'}));
1762
print "</td>\n";
1763
print "<td>$mode_chng</td>\n";
1764
print "<td class=\"link\">";
@@ -1785,11 +1785,11 @@ sub git_difftree_body {
1785
print " | ";
1786
}
1787
print $cgi->a({-href => href(action=>"blame", hash_base=>$parent,
1788
- file_name=>$diff{'file'})},
1789
- "blame") . " | ";
1788
+ file_name=>$diff{'file'})},
1789
+ "blame") . " | ";
1790
print $cgi->a({-href => href(action=>"history", hash_base=>$parent,
1791
- file_name=>$diff{'file'})},
1792
- "history");
1791
+ file_name=>$diff{'file'})},
1792
+ "history");
1793
print "</td>\n";
1794
1795
} elsif ($diff{'status'} eq "M" || $diff{'status'} eq "T") { # modified, or type changed
@@ -1810,8 +1810,8 @@ sub git_difftree_body {
1810
}
1811
print "<td>";
1812
print $cgi->a({-href => href(action=>"blob", hash=>$diff{'to_id'},
1813
- hash_base=>$hash, file_name=>$diff{'file'}),
1814
- -class => "list"}, esc_html($diff{'file'}));
1813
+ hash_base=>$hash, file_name=>$diff{'file'}),
1814
+ -class => "list"}, esc_html($diff{'file'}));
1815
print "</td>\n";
1816
print "<td>$mode_chnge</td>\n";
1817
print "<td class=\"link\">";
@@ -1822,19 +1822,19 @@ sub git_difftree_body {
1822
print $cgi->a({-href => "#patch$patchno"}, "patch");
1823
} else {
1824
print $cgi->a({-href => href(action=>"blobdiff",
1825
- hash=>$diff{'to_id'}, hash_parent=>$diff{'from_id'},
1826
- hash_base=>$hash, hash_parent_base=>$parent,
1827
- file_name=>$diff{'file'})},
1828
- "diff");
1825
+ hash=>$diff{'to_id'}, hash_parent=>$diff{'from_id'},
1826
+ hash_base=>$hash, hash_parent_base=>$parent,
1827
+ file_name=>$diff{'file'})},
1828
+ "diff");
1829
}
1830
print " | ";
1831
}
1832
print $cgi->a({-href => href(action=>"blame", hash_base=>$hash,
1833
- file_name=>$diff{'file'})},
1834
- "blame") . " | ";
1833
+ file_name=>$diff{'file'})},
1834
+ "blame") . " | ";
1835
print $cgi->a({-href => href(action=>"history", hash_base=>$hash,
1836
- file_name=>$diff{'file'})},
1837
- "history");
1836
+ file_name=>$diff{'file'})},
1837
+ "history");
1838
print "</td>\n";
1839
1840
} elsif ($diff{'status'} eq "R" || $diff{'status'} eq "C") { # renamed or copied
@@ -1862,19 +1862,19 @@ sub git_difftree_body {
1862
print $cgi->a({-href => "#patch$patchno"}, "patch");
1863
} else {
1864
print $cgi->a({-href => href(action=>"blobdiff",
1865
- hash=>$diff{'to_id'}, hash_parent=>$diff{'from_id'},
1866
- hash_base=>$hash, hash_parent_base=>$parent,
1867
- file_name=>$diff{'to_file'}, file_parent=>$diff{'from_file'})},
1868
- "diff");
1865
+ hash=>$diff{'to_id'}, hash_parent=>$diff{'from_id'},
1866
+ hash_base=>$hash, hash_parent_base=>$parent,
1867
+ file_name=>$diff{'to_file'}, file_parent=>$diff{'from_file'})},
1868
+ "diff");
1869
}
1870
print " | ";
1871
}
1872
print $cgi->a({-href => href(action=>"blame", hash_base=>$parent,
1873
- file_name=>$diff{'from_file'})},
1874
- "blame") . " | ";
1873
+ file_name=>$diff{'from_file'})},
1874
+ "blame") . " | ";
1875
print $cgi->a({-href => href(action=>"history", hash_base=>$parent,
1876
- file_name=>$diff{'from_file'})},
1877
- "history");
1876
+ file_name=>$diff{'from_file'})},
1877
+ "history");
1878
print "</td>\n";
1879
1880
} # we should not encounter Unmerged (U) or Unknown (X) status
@@ -2800,7 +2800,7 @@ sub git_tree {
2800
# FIXME: Should be available when we have no hash base as well.
2801
push @views_nav,
2802
$cgi->a({-href => href(action=>"snapshot", hash=>$hash)},
2803
- "snapshot");
2803
+ "snapshot");
2804
}
2805
git_print_page_nav('tree','', $hash_base, undef, undef, join(' | ', @views_nav));
2806
git_print_header_div('commit', esc_html($co{'title'}) . $ref, $hash_base);