我在Mac OSX Snow Leopard上安装了Git,并尝试编辑我的合并和差异工具,以使用kdiff3代替emerge。
但是当我尝试使用它时,它没有启动kdiff的GUI界面,而是一直停留在基于命令行的界面。
我的gitconfig设置如下:
[merge]
tool = kdiff3
[mergetool "kdiff3"]
cmd = /Applications/kdiff3.app/Contents/MacOS/kdiff3
args = $base $local $other -o $output
trustExitCode = false
[diff]
tool = kdiff3
[difftool "kdiff3"]
cmd = /Applications/kdiff3.app/Contents/MacOS/kdiff3
args = $base $local $other -o $output
trustExitCode = false
显然有一些东西丢失了,但我错在哪里了?
[mergetool]
或[difftool]
。只需要设置tool = kdiff3
即可。你试过这样做吗? - Matt Briançon