Test 0
Let's test if meld
works
Can you run meld
in the console?
tymatm@XXX:/mnt/c/git/sandbox$ meld
Test 1
Let's test if setting a tool works.
tymatm@XXX:/mnt/c/git/sandbox$ git config --global diff.tool meld
and then:
tymatm@XXX:/mnt/c/git/sandbox$ git difftool
Viewing (1/2): '1.txt'
Launch 'meld' [Y/n]:
Test 1.5
Added since test 1 was failing
Let's try the local, not global, config
tymtam@XYZ:/mnt/c/git/sandbox$ git config diff.tool meld
tymtam@XYZ:/mnt/c/git/sandbox$ git config difftool.prompt true
tymtam@XYZ:/mnt/c/git/sandbox$ cat .git/config
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
[diff]
tool = meld
[difftool]
prompt = true
tymtam@XYZ:/mnt/c/git/sandbox$ git difftool
Viewing (1/2): '1.txt'
Launch 'meld' [Y/n]: n
Test 2
Let's tests if the cmd=
part works.
vi ~/.gitconfig
Here I'm using a simple echo
to verify that the configuration works - in the final setup the command would be cmd = meld XXX

tymtam@XXX:/mnt/c/git/sandbox$ git difftool
Viewing (1/2): '1.txt'
Launch 'meld' [Y/n]: y
/tmp/VuquIm_1.txt 1.txt
Viewing (2/2): '2.txt'
Launch 'meld' [Y/n]: y
/tmp/drAZtV_2.txt 2.txt
tymek@LAPTOP-B0OQU3LB:/mnt/c/git/sandbox$
Test 3
Subsitute echo
in ~/.gitconfig
with meld