gitweb: History: blob and tree are first, then commitdiff, etc
Reorder link display in history to be consistent with other list displays: log, shortlog, etc. We now display: blob | commitdiff blob | commitdiff | diff_to_current and tree | commitdiff Instead of the old history format where "blob" and "tree" are between "commitdiff" and "diff_to_current" if present/ applicable. Signed-off-by: Luben Tuikov <ltuikov@yahoo.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Luben Tuikov committed
Sep 28, 2006 at 17:21 UTC
6d81c5a2ea6e0b11fdee87d61d073850c17ce6d8
1 file changed
+2
-2
gitweb/gitweb.perl
+2
-2
@@ -2071,8 +2071,8 @@ sub git_history_body {
2071
href(action=>"commit", hash=>$commit), $ref);
2072
print "</td>\n" .
2073
"<td class=\"link\">" .
2074
- $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff") . " | " .
2075
- $cgi->a({-href => href(action=>$ftype, hash_base=>$commit, file_name=>$file_name)}, $ftype);
2074
+ $cgi->a({-href => href(action=>$ftype, hash_base=>$commit, file_name=>$file_name)}, $ftype) . " | " .
2075
+ $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff");
2076
2077
if ($ftype eq 'blob') {
2078
my $blob_current = git_get_hash_by_path($hash_base, $file_name);