# [PATCH] gitweb: History: blob and tree are first, then commitdiff, etc

1 messages from 2006-09-29 to 2006-09-29. Participants: Luben Tuikov.
Thread: https://gitlist.dev/t/5756

## Luben Tuikov, 2006-09-29 00:21

Subject: [PATCH] gitweb: History: blob and tree are first, then commitdiff, etc
Message-ID: <20060929002108.22581.qmail@web31810.mail.mud.yahoo.com>
URL: https://gitlist.dev/e/20060929002108.22581.qmail%40web31810.mail.mud.yahoo.com

```
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>
---
 gitweb/gitweb.perl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index c0f7dff..f175237 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -2071,8 +2071,8 @@ sub git_history_body {
 		                          href(action=>"commit", hash=>$commit), $ref);
 		print "</td>\n" .
 		      "<td class=\"link\">" .
-		      $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff") . " | " .
-		      $cgi->a({-href => href(action=>$ftype, hash_base=>$commit, file_name=>$file_name)}, $ftype);
+		      $cgi->a({-href => href(action=>$ftype, hash_base=>$commit, file_name=>$file_name)}, $ftype) . " | " .
+		      $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff");
 
 		if ($ftype eq 'blob') {
 			my $blob_current = git_get_hash_by_path($hash_base, $file_name);
-- 
1.4.2.1.g8492a


```
