Skip to contentSkip to conversation

gitweb: the commitdiff is very commonly used, it's needed on search page, too

PATCH In review Denis Cheng 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gitweb: the commitdiff is very commonly used, it's needed on search page, too

---
 gitweb/gitweb.perl |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
gitweb/gitweb.perl +2 -0
index 491a3f4..ff5daa7 100755
@@ -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";
Signature · 1 line
1.5.3.4
#1 lore raw

I'll queue this to my tree but will drop if I hear objections from gitweb people CC'ed over the weekend.

#2 lore raw
Quoted 2 lines · Junio C Hamano

I'll queue this to my tree but will drop if I hear objections from gitweb people CC'ed over the weekend.

This just ads link to 'search' view to 'commitdiff'; looks very nice.

Signature · 3 lines
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git