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

RE: [PATCH] Added mergetool.kdiff3.doubledash config option

From
Ppatrick.higgins@cexp.com <patrick.higgins@cexp.com>
Date
Jun 12, 2008, 22:44 UTC
Message-ID
<911589C97062424796D53B625CEC0025E46159@USCOBRMFA-SE-70.northamerica.cexp.com>
In-Reply-To
<7vve0ez8z3.fsf@gitster.siamese.dyndns.org>
From: Junio C Hamano [mailto:gitster@pobox.com]
Show 19 quoted lines
> Patrick Higgins <patrick.higgins@cexp.com> writes:
> 
> > +mergetool.kdiff3.doubledash::
> > +	A boolean to indicate whether or not your kdiff3 supports a '--'
> > +	on the command line to separate options from filenames. If you
> > +	built it without KDE, it probably doesn't have this support and
> > +	you	should set this to false.  Defaults to true.
> 
> The above description makes it clear that there is an issue 
> that needs to
> be addressed.  I however am wondering if this can be either 
> autodetected
> at runtime, or if it can't, the user should be able to 
> specify the option
> when the user runs mergetool from the command line.  It would 
> be necessary
> to countermand whichever choice you configured in your config when you
> need to run kdiff3 with KDE from one machine and the one without from
> another machine, wouldn't it?
I have found the following to be a way to distinguish the two versions based solely on exit status. The broken one exits with 255.
kdiff3 --auto -o /dev/null -- /dev/null /dev/null
I'll work up another patch that uses this. This check adds about 0.5s overhead. That seems a little high to me, but given that mergetool is interactive, I guess that could be acceptable.
Previous: Junio C HamanoNext: Theodore Tso
Message 3 of 6 in “Added mergetool.kdiff3.doubledash config option”
  1. Added mergetool.kdiff3.doubledash config optionPatrick Higgins, Jun 12, 2008
  2. Junio C HamanoJun 12, 2008
  3. patrick.higgins@cexp.comJun 12, 2008
  4. Theodore TsoJun 13, 2008
  5. Junio C HamanoJun 14, 2008
  6. Theodore TsoJun 14, 2008

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.