git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Denis Cheng <crquan@gmail.com>
Date
Nov 26, 2007, 12:42 UTC
Message-ID
<1196080926-5962-1-git-send-email-crquan@gmail.com>
---
 gitweb/gitweb.perl |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 491a3f4..ff5daa7 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -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";
-- 
1.5.3.4
Next: Junio C Hamano
Message 1 of 3 in “gitweb: the commitdiff is very commonly used, it's needed on search page, too”
  1. gitweb: the commitdiff is very commonly used, it's needed on search page, tooDenis Cheng, Nov 26, 2007
  2. Junio C HamanoDec 1, 2007
  3. Jakub NarebskiDec 1, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.