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

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

From
MKMarcus Karlsson <mk@acc.umu.se>
Date
Oct 12, 2011, 14:36 UTC
Message-ID
<20111012143639.GA22316@kennedy.acc.umu.se>
In-Reply-To
<20111008064704.GA27056@bloggs.ozlabs.ibm.com>
On Sat, Oct 08, 2011 at 05:47:04PM +1100, Paul Mackerras wrote:
Show 22 quoted lines
> 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.
Not really, that would work very well.
Marcus
Previous: Paul MackerrasNext: Paul Mackerras
Message 3 of 5 in “gitk: Teach gitk to respect log.showroot”
  1. gitk: Teach gitk to respect log.showrootMarcus Karlsson, Oct 4, 2011
  2. Paul MackerrasOct 8, 2011
  3. Marcus KarlssonOct 12, 2011
  4. Paul MackerrasMar 18, 2012
  5. Zbigniew Jędrzejewski-SzmekMar 19, 2012

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.