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

[PATCH] gitweb: Change the name of diff to parent link in "commit" view to "diff

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 3, 2006, 21:43 UTC
Message-ID
<200609032343.03657.jnareb@gmail.com>

Change the name of diff to parent (current commit to one of parents) link in "commit" view (git_commit subroutine) from "commitdiff" to "diff". Let's leave "commitdiff" for equivalent of git-show, or git-diff-tree with one revision, i.e. diff for a given commit to its parent (parents).

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
One of the cases when commit message is larger than diff itself ;-)
Against 'master'.
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 57ffa25..2b40aa1 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -2781,7 +2781,7 @@ sub git_commit {
 		      "<td class=\"link\">" .
 		      $cgi->a({-href => href(action=>"commit", hash=>$par)}, "commit") .
 		      " | " .
-		      $cgi->a({-href => href(action=>"commitdiff", hash=>$hash, hash_parent=>$par)}, "commitdiff") .
+		      $cgi->a({-href => href(action=>"commitdiff", hash=>$hash, hash_parent=>$par)}, "diff") .
 		      "</td>" .
 		      "</tr>\n";
 	}
-- 
1.4.1.1


-- 
VGER BF report: U 0.508278
Message 1 of 1 in “gitweb: Change the name of diff to parent link in "commit" view to "diff”
  1. gitweb: Change the name of diff to parent link in "commit" view to "diffJakub Narebski, Sep 3, 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.