WinMerge via git difftool keeps prompting for second file -



WinMerge via git difftool keeps prompting for second file -

i used @vonc's excellent instructions configure development scheme git difftool <branch1> <branch1> invoke winmerge. here did:

placed next in ~/.gitconfig:

[diff]

tool = winmerge

[difftool "winmerge"]

cmd = winmerge.sh \"$local\" \"$remote\"

[difftool]

prompt = false

created /usr/bin/winmerge.sh next content:

echo launching winmergeu.exe: $1 $2

"c:/program files (x86)/winmerge/winmergeu.exe" -e -ub "$1" "$2"

now, when seek launch winmerge via git difftool <branch1> <branch1>, receive seems right parameter passing:

launching winmergeu.exe: /tmp/21qmvb_file1.c /tmp/1acqik_file1.c

but, unusual reason, instead of winmerge displaying 2 files side-by-side, prompts entering first file right-side, sec file accepted left-side:

why happening? did miss in configuration steps?

p.s. when type on command line winmerge.sh file1.c file2.c, winmerge displays 2 files side-by-side, expect.

update: oh wow, noticed both paths invalid message @ bottom of winmerge's prompt (and updated screenshot emphasize that). appears these files weren't generated difftool or wrong path.

i solved problem! :))

the solution lies in hint provided @pydave's answer in same thread. had replace "$1" "$2" (in winmerge.sh) cygpath -w $1 cygpath -w $2.

it works beautifully now. expect. :))

git winmerge difftool

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -