In my repository, if I type
$ git diff some-file
or
$ git difftool some-file
I get the in-terminal diff display. I think this should not happen, because I have set up an external diff tool, as shown by the output of git config -l
:
$ git config -l
user.name=blah blah
user.email=blah blah
http.sslverify=true
diff.external=/home/daniel/bin/git-diff <--This is the important line
push.default=simple
core.filemode=false
core.editor=gedit
alias.tree=log --all --graph --decorate=short --color --format=format:'%C(bold blue)%h%C(reset) %C(auto)%d%C(reset)
%C(black)[%cr]%C(reset) %x09%C(black)%an: %s %C(reset)'
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
remote.origin.url=https://daniel@skynet/git/pyle.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
branch.daniel.remote=origin
branch.daniel.merge=refs/heads/daniel
The git-diff file referenced in the diff.external
line looks like this
#!/bin/bash
meld $2 $5
Why doesn't git diff
invoke meld?
I get the same behaviour if I set things up so that git config -l
has the following line:
diff.tool = meld
or
diff.external = usr/bin/meld
Note: Other repositories on my machine don't have this problem.
Related, but not equivalent, SO questions: