From: Junio C Hamano [mailto:gitster@xxxxxxxxx] > Patrick Higgins <patrick.higgins@xxxxxxxx> 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. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html