Re: [PATCH] mergetools: Enable tortoisemerge to handle filenames with
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 1, 2013, 20:15 UTC
- Message-ID
- <7va9rnaiz4.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CAHGBnuNpHtfnD6D+sji6e1yp2x6iLxjAbawwO6USF2iWW17nuQ@mail.gmail.com>
Sebastian Schuberth <sschuberth@gmail.com> writes:
> The commit message still does not mention MSYS path mangling at all, > which probably is why the reasoning of this patch was not yet fully > understood.
Ahh, you are very right. I didn't realize that was what this funny "with colon, with SP" business was about.
Show 21 quoted lines
> I'd recommend something like the following: > > mergetools: Teach tortoisemerge about TortoiseGitMerge > > TortoiseGitMerge is an improved version of TortoiseMerge specifically > for use with Git on Windows. Due to MSYS path mangling [1], the ":" > after the "base" etc. arguments to TortoiseMerge caused to 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. > > [1] http://www.mingw.org/wiki/Posix_path_conversion
Sven?