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

[gitweb PATCH] add a 'diff to parent' option in the file history display

From
BRBrad Roberts <braddr@puremagic.com>
Date
Oct 23, 2005, 15:25 UTC
Message-ID
<Pine.LNX.4.44.0510230815570.2284-100000@bellevue.puremagic.com>

I'm not sure how well this plays with multiple parent merges or anything complicated. It seems to work well on a converted cvs archive.

Pullable from:  git://cvs.puremagic.com/git/gitweb.git

--------------------- add a 'diff to parent' option in the file history display

Signed-off-by: Brad Roberts <braddr@puremagic.com>
---
 gitweb.cgi |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
2539b424d62cc2ab060c5d2fa9525a6b6f8df7e5
diff --git a/gitweb.cgi b/gitweb.cgi
--- a/gitweb.cgi
+++ b/gitweb.cgi
@@ -2054,6 +2054,9 @@ sub git_history {
 				print " | " .
 				$cgi->a({-href => "$my_uri?p=$project;a=blobdiff;h=$blob;hp=$blob_parent;hb=$commit;f=$file_name"},
 				"diff to current");
+				print " | "
+				$cgi->a({-href => "$my_uri?p=$project;a=blobdiff;h=$blob_parent;hp=$3;hb=$commit;f=$file_name"},
+				"diff to parent");
 			}
 			print "</td>\n" .
 			      "</tr>\n";
Next: Brad Roberts
Message 1 of 2 in “add a 'diff to parent' option in the file history display”
  1. add a 'diff to parent' option in the file history displayBrad Roberts, Oct 23, 2005
  2. Brad RobertsOct 23, 2005

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.