I would like to be able to use ediff with "git mergetool".
I found some patches that alter the source code, which I don't want to do. Instead, I'd like to add ediff support with my .gitconfig.
I know git has builtin support for emerge, but I prefer ediff.
I attempted to add these lines to my .gitconfig:
[mergetool "ediff"]
cmd = emacs --eval "(ediff-merge-files-with-ancestor "$LOCAL" "$REMOTE" "$BASE" nil "$MERGED")"
But when I try to run this with "git mergetool --tool=ediff", I get this:
eval: 1: Syntax error: "(" unexpected
What am I doing wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…