I'm trying to configure vimdiff as a git merge tool, so my global git config contains the following lines:
[merge]
tool = gvimdiff
guitool = gvimdiff
[mergetool]
prompt = true
[mergetool "gvimdiff"]
layout = "LOCAL,MERGED,REMOTE"
but I am keep in having the default layout. A similar problem has reported here but it won't apply to my case because of the following reasons:
- I am using gvimdiff
- I am using git version 2.39.2 (Apple Git-143)
How should I solve it? Running on MacOsX Ventura.
That should be fixed with Git 2.45 (Q2 2024), batch 2: variants of vimdiff learned to honor
mergetool.<variant>.layoutsettings.See commit b21d164 (17 Feb 2024) by Kipras Melnikovas (
kiprasmel).(Merged by Junio C Hamano --
gitster-- in commit 66b1160, 27 Feb 2024)git confignow includes in its man page:mergetools/vimdiffnow includes in its man page: