1
目前我有這個gitconfig:如何配置提示diffmerge
[diff]
tool = diffmerge
[difftool "diffmerge"]
cmd = diffmerge \"$LOCAL\" \"$REMOTE\"
[merge]
tool = diffmerge
[mergetool "diffmerge"]
cmd = "diffmerge --merge --result=\"$MERGED\" \"$LOCAL\" \"$(if test -f \"$BASE\"; then echo \"$BASE\"; else echo \"$LOCAL\"; fi)\" \"$REMOTE\""
trustExitCode = true
[alias]
df = difftool
每次我開始difftool通過git的difftool somefile..somefile,我得到提示:
Hit return to launch 'diffmerge':
哪有我設置這個提示是這樣的,如果我輸入「Y」它會打開文件,如果「N」跳過它?