Skip to content

Commit f1fe8f5

Browse files
crquangitster
authored andcommitted
gitweb: the commitdiff is very commonly used, it's needed on search page, too
Acked-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 1c46ab1 commit f1fe8f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitweb/gitweb.perl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3786,6 +3786,8 @@ sub git_search_grep_body {
37863786
"<td class=\"link\">" .
37873787
$cgi->a({-href => href(action=>"commit", hash=>$co{'id'})}, "commit") .
37883788
" | " .
3789+
$cgi->a({-href => href(action=>"commitdiff", hash=>$co{'id'})}, "commitdiff") .
3790+
" | " .
37893791
$cgi->a({-href => href(action=>"tree", hash=>$co{'tree'}, hash_base=>$co{'id'})}, "tree");
37903792
print "</td>\n" .
37913793
"</tr>\n";

0 commit comments

Comments
 (0)