I configured IntelliJ as my diff and mergetool on my mac, but git launches it, the command line always returns immediately, and does not wait for the parsing to complete, which means that the changes are not reflected on the disk.
My configuration:
[mergetool "intellij"] cmd = /Applications/IntelliJ\\ IDEA\\ 13\\ CE.app/Contents/MacOS/idea merge \ $(cd $(dirname \"$LOCAL\") && pwd)/$(basename \"$LOCAL\") \ $(cd $(dirname \"$REMOTE\") && pwd)/$(basename \"$REMOTE\") \ $(cd $(dirname \"$BASE\") && pwd)/$(basename \"$BASE\") $(cd $(dirname \"$MERGED\") && pwd)/$(basename \"$MERGED\") trustExitCode = true
I tested the IntelliJ call manually without git, and it also returns immediately, so I donβt think it was caused by the git call, rather, the IntelliJ command line call just sends a message to open a window to an existing running IntelliJ instance .. Is there a way to force IntelliJ not return or create a new instance to make this work?
source share