Merge branch 'dc/gitweb'
authorJunio C Hamano <gitster@pobox.com>
Mon, 3 Dec 2007 03:07:48 +0000 (19:07 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Dec 2007 03:07:48 +0000 (19:07 -0800)
* dc/gitweb:
gitweb: the commitdiff is very commonly used, it's needed on search page, too

gitweb/gitweb.perl
index 491a3f41d20deafa6513e7f574108022b762507b..ff5daa7901d9976dc35e1b4a05e1cf0140297d6a 100755 (executable)
@@ -3786,6 +3786,8 @@ sub git_search_grep_body {
                      "<td class=\"link\">" .
                      $cgi->a({-href => href(action=>"commit", hash=>$co{'id'})}, "commit") .
                      " | " .
+                     $cgi->a({-href => href(action=>"commitdiff", hash=>$co{'id'})}, "commitdiff") .
+                     " | " .
                      $cgi->a({-href => href(action=>"tree", hash=>$co{'tree'}, hash_base=>$co{'id'})}, "tree");
                print "</td>\n" .
                      "</tr>\n";