Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: [PATCH v3] gitk: Teach gitk to respect log.showroot

From: Paul Mackerras <hidden>
Date: 2016-06-15 22:52:12

On Tue, Oct 04, 2011 at 10:08:13PM +0200, Marcus Karlsson wrote:
Teach gitk to respect log.showroot.
Sounds reasonable, ...
-	set cmd [concat | git diff-tree -r $flags $ids]
+	set cmd [concat | git diff-tree -r]
+	if {$log_showroot eq true} {
+	    set cmd [concat $cmd --root]
+	}
+	set cmd [concat $cmd $flags $ids]
but is there any reason not to do it like this?

	if {$log_showroot} {
	    lappend flags --root
	}
	set cmd [concat | git diff-tree -r $flags $ids]

I.e., do you particularly want the --root before the other flags?

Paul.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help