Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] gitk: Show patch for initial commit

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:09

Marcus Karlsson [off-list ref] writes:
quoted
quoted
diff --git a/gitk-git/gitk b/gitk-git/gitk
index 4cde0c4..20aeae6 100755
--- a/gitk-git/gitk
+++ b/gitk-git/gitk
@@ -7436,7 +7436,7 @@ proc diffcmd {ids flags} {
 	    lappend cmd HEAD
 	}
     } else {
-	set cmd [concat | git diff-tree -r $flags $ids]
+	set cmd [concat | git diff-tree -r --root $flags $ids]
     }
     return $cmd
 }
Cool, this works for me! But I think I would be really nice if gitk
respected the configuration value of log.showroot. This would give
nice consistency amongst the various tools.
I agree, that would be reasonable. I'll prepare a new patch with that
behavior.
That would be good, but whatever you do please keep the maintainer of
gitk, Paul Mackerras [off-list ref], in the loop.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help