msysgit / git

msysGit-based Git for Windows 1.x is now superseded by Git for Windows 2.x
http://github.com/git-for-windows/git
Other
1.01k stars 316 forks source link

Custom mergetool cmd support in git GUI #369

Closed elecpic closed 9 years ago

elecpic commented 9 years ago

git GUI doesn't actually support custom mergetool cmd when providing the following .gitconfig:

[merge] tool = mymerge [mergetool] cmd = mymerge \"$BASE\" \"$LOCAL\" \"$REMOTE\" -o \"$MERGED\"

Instead git-gui popups the error: "Unsupported merge tool 'mymerge'"

This post: http://stackoverflow.com/a/15984079 directed me to Git/share/git-gui/lib/mergetool.tcl where I fixed the issue in a way to support custom cmd specified in .gitconfig. At least, it works for me...

Here's the file (I didn't find where to attach other than image files):

mergetool tcl

dscho commented 9 years ago

Please fork & clone https://github.com/msysgit/git, patch the problem, provide a proper commit message with sign-off and open a Pull Request.