mergetools: teach tortoisemerge to handle filenames with SP correctly
commit81ed7b9581f7eafb334824264abb492d85a5ffb8
authorSven Strickroth <sven.strickroth@tu-clausthal.de>
Fri, 1 Feb 2013 20:16:30 +0000 (1 21:16 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 2 Feb 2013 02:06:03 +0000 (1 18:06 -0800)
tree2e2476a7211afad3e4301b89e244b48e77dbbece
parent8bf671946da23b39b7b6b18fe99cfa011ec21a11
mergetools: teach tortoisemerge to handle filenames with SP correctly

TortoiseGitMerge, unlike TortoiseMerge, can be told to handle paths
with spaces in them by using -option "$FILE" (not -option:"$FILE",
which does not work for such paths) syntax.

This change was necessary because of MSYS path mangling [1], the ":"
after the "base" etc. arguments to TortoiseMerge caused the whole
argument instead of just the file name to be quoted in case of file
names with spaces. So TortoiseMerge was passed

    "-base:new file.txt"

instead of

    -base:"new file.txt"

(including the quotes). To work around this, TortoiseGitMerge does not
require the ":" after the arguments anymore which fixes handling file
names with spaces [2] (as written above).

[1] http://www.mingw.org/wiki/Posix_path_conversion
[2] https://github.com/msysgit/msysgit/issues/57

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Reported-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mergetools/tortoisemerge