If you want to use it with git:
git config --global diff.tool meld
git config --global --add difftool.prompt false
And use git difftool instead of git diff