git-mergetool/difftool: make (g)vimdiff workable under Windows
commitbad42732008cb0c1e77046d716e4446b1545d4d0
authorMarkus Heidelberg <markus.heidelberg@web.de>
Mon, 6 Apr 2009 08:31:17 +0000 (6 01:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Apr 2009 05:19:55 +0000 (7 22:19 -0700)
tree38e7184d5e448849061b1ae820800300814b46e1
parentda81688cc5639c9c482a89a4b732737f7aa0d61d
git-mergetool/difftool: make (g)vimdiff workable under Windows

Under Windows vimdiff and gvimdiff are not available as symbolic links,
but as batch files vimdiff.bat and gvimdiff.bat. These files weren't
found by 'type vimdiff' which led to the following error:

    The merge tool vimdiff is not available as 'vimdiff'

Even if they were found, it wouldn't work to invoke these batch files
from git-mergetool.

To solve this, use vim and gvim (vim.exe and gvim.exe) and pass the -d
command line switch over to them.

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/difftool/git-difftool-helper
git-mergetool.sh