I want to use opendiff as default diff-tool for git diff. This used to work but for some reason stopped working. I'm using a script:
echo opendiff $2 $5 > opendiff-git.sh
which is set in .gitconfig:
[diff]
external = ~/opendiff-git.sh
This stopped working for me lately. What is wrong?
Update: When I cloned a new repository everything worked fine! Strange!