Thread (2 messages) flat view 2 messages, 1 author, 2016-06-15
DORMANTno replies

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

From: Brad Roberts <hidden>
Date: 2016-06-15 22:42:09
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>
---

 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";
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help