Michael
Michael

Reputation: 5939

Configuring git difftool

I'm using git 2.18.0. In ~/.gitconfig section [alias] I have diff-tool alias configured like this:

meld = difftool -y --tool=meld

Alas, git meld produces diff-style results instead of launching meld. Moreover, spelling it out on the command line git difftool -y --tool=meld also produces diff-style output. On the other hand, launching meld from command line is successful.

Could you suggest what may be wrong?

Upvotes: 1

Views: 367

Answers (1)

idlethread
idlethread

Reputation: 1181

Make sure you have something to the effect of the following in you .gitconfig and get rid of the alias:

[diff]
    tool = meld
    guitool = meld
[difftool]
    prompt = false
[difftool "meld"]
    path = /usr/bin/meld

Upvotes: 2

Related Questions