{"thread":{"id":"5756","subject":"[PATCH] gitweb: History: blob and tree are first, then commitdiff, etc","startedAt":"2006-09-29T00:21:07Z","lastAt":"2006-09-29T00:21:07Z","messageCount":1,"participants":["Luben Tuikov"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"27962","messageId":"20060929002108.22581.qmail@web31810.mail.mud.yahoo.com","threadId":"5756","inReplyTo":null,"subject":"[PATCH] gitweb: History: blob and tree are first, then commitdiff, etc","fromName":"Luben Tuikov","fromEmail":"ltuikov@yahoo.com","sentAt":"2006-09-29T00:21:07Z","receivedAt":"2006-09-29T00:21:07Z","isPatch":true,"sender":{"key":"ltuikov@yahoo.com","avatar":null},"body":"Reorder link display in history to be consistent with other\nlist displays: log, shortlog, etc.  We now display:\n\tblob | commitdiff\n\tblob | commitdiff | diff_to_current\nand\n\ttree | commitdiff\nInstead of the old history format where \"blob\" and \"tree\"\nare between \"commitdiff\" and \"diff_to_current\" if present/\napplicable.\n\nSigned-off-by: Luben Tuikov <ltuikov@yahoo.com>\n---\n gitweb/gitweb.perl |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex c0f7dff..f175237 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -2071,8 +2071,8 @@ sub git_history_body {\n \t\t                          href(action=>\"commit\", hash=>$commit), $ref);\n \t\tprint \"</td>\\n\" .\n \t\t      \"<td class=\\\"link\\\">\" .\n-\t\t      $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\") . \" | \" .\n-\t\t      $cgi->a({-href => href(action=>$ftype, hash_base=>$commit, file_name=>$file_name)}, $ftype);\n+\t\t      $cgi->a({-href => href(action=>$ftype, hash_base=>$commit, file_name=>$file_name)}, $ftype) . \" | \" .\n+\t\t      $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\");\n \n \t\tif ($ftype eq 'blob') {\n \t\t\tmy $blob_current = git_get_hash_by_path($hash_base, $file_name);\n-- \n1.4.2.1.g8492a\n\n"}]}