How to use ExamDiff Pro with git and WSL2
Posted: Thu Jan 20, 2022 4:18 am
I'm doing Linux development using WSL2, but I still want to use ExamDiff Pro as my git difftool.
Turns out there is an easy way to do this, so I'm sharing it here for others to use (maybe it could be added to the https://www.prestosoft.com/edp_versioncontrol.asp page?)
All you need to do is edit your "~/.gitconfig" file to include the following:
Note that you have to edit the file, you cannot use "git config" from the command line because it will immediately evaluate wslpath, whereas you want it to evaluate wslpath when it actually invokes ExamDiff Pro.
Note - when using the git option "--dir-diff" you need to also use "--no-symlinks".
There is some related information here for further reading:
https://stackoverflow.com/questions/638 ... ol-on-wsl2
You're welcome!
Dave C
Turns out there is an easy way to do this, so I'm sharing it here for others to use (maybe it could be added to the https://www.prestosoft.com/edp_versioncontrol.asp page?)
All you need to do is edit your "~/.gitconfig" file to include the following:
Code: Select all
[diff]
tool = edp
guitool = edp
[difftool "edp"]
cmd = /mnt/c/Program\\ Files/ExamDiff\\ Pro/ExamDiff.exe \"$(wslpath -aw $REMOTE)\" \"$(wslpath -aw $LOCAL)\" /nh
[difftool]
prompt = false
Note - when using the git option "--dir-diff" you need to also use "--no-symlinks".
Code: Select all
git difftool --dir-diff --no-symlinks
https://stackoverflow.com/questions/638 ... ol-on-wsl2
You're welcome!
Dave C