Re: [PATCH 5/5] difftool: fallback on merge.guitool
- From
- Jeff Hostetler <git@jeffhostetler.com>
- Date
- Apr 22, 2019, 18:18 UTC
- Message-ID
- <2a521a5c-4b5d-57aa-1e91-d4ec9b190fb7@jeffhostetler.com>
- In-Reply-To
- <fb7ac11439cbfd52d9181b78fdc8f8034a6b1064.1555880168.git.liu.denton@gmail.com>
On 4/22/2019 1:07 AM, Denton Liu wrote:
Show 9 quoted lines
> In git-difftool.txt, it says > > 'git difftool' falls back to 'git mergetool' config variables when the > difftool equivalents have not been defined. > > However, when `diff.guitool` is missing, it doesn't fallback to > anything. Make git-difftool fallback to `merge.guitool` when `diff.guitool` is > missing. >
Is this a well-defined operation?
I mean, we're assuming here that a 3-way gui merge tool (that probably expects 3 input pathnames and maybe a 4th merge-result pathname (and associated titles and etc)) can function sanely when only given the pair that a diff would have.
That is, we're assuming that the selected merge tool has a 2-way diff mode and that the command line args for the 2- and 3-way views are compatible.
Just a thought Jeff