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

[PATCH] gitweb: [commit view] Do not suppress commitdiff link in root commit

From
Petr Baudis <pasky@suse.cz>
Date
Oct 6, 2006, 16:59 UTC
Message-ID
<20061006165933.4127.72491.stgit@rover>

There's no reason for that, the commitdiff view is meaningful for the root commit as well and we link to it everywhere else.

Signed-off-by: Petr Baudis <pasky@suse.cz>
---
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 56e5231..3a10124 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -3034,7 +3034,7 @@ sub git_commit {
 			$cgi->a({-href => href(action=>"log", hash=>$hash)}, "log");
 	}
 	git_header_html(undef, $expires);
-	git_print_page_nav('commit', defined $co{'parent'} ? '' : 'commitdiff',
+	git_print_page_nav('commit', '',
 	                   $hash, $co{'tree'}, $hash,
 	                   join (' | ', @views_nav));
 
Next: Jakub Narebski
Message 1 of 5 in “gitweb: [commit view] Do not suppress commitdiff link in root commit”
  1. gitweb: [commit view] Do not suppress commitdiff link in root commitPetr Baudis, Oct 6, 2006
  2. Jakub NarebskiOct 6, 2006
  3. Junio C HamanoOct 7, 2006
  4. Jakub NarebskiOct 7, 2006
  5. Petr BaudisOct 7, 2006

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.