git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Error after calling git difftool -d with

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 2, 2016, 16:05 UTC
Message-ID
<alpine.DEB.2.20.1612021704170.117539@virtualbox>
In-Reply-To
<5f630c90-cf54-3a23-c9a9-af035d4514e0@gmail.com>
Hi Peter,
On Fri, 2 Dec 2016, P. Duijst wrote:
Show 29 quoted lines
> Incase filenames are used with a quote ' or a bracket [  (and maybe some more
> characters), git "diff" and "difftool -y" works fine, but git *difftool **-d*
> gives the next error message:
> 
>    peter@scm_ws_10 MINGW64 /d/Dev/test (master)
>    $ git diff
>    diff --git a/Test ''inch.txt b/Test ''inch.txt
>    index dbff793..41f3257 100644
>    --- a/Test ''inch.txt
>    +++ b/Test ''inch.txt
>    @@ -1 +1,3 @@
>    +
>    +ddd
>      Test error in simple repository
>    warning: LF will be replaced by CRLF in Test ''inch.txt.
>    The file will have its original line endings in your working directory.
> 
>    peter@scm_ws_10 MINGW64 /d/Dev/test (master)
>    *$ git difftool -d*
>    *fatal: Cannot open '/d/Dev/test//Test ''inch.txt': No such file or
>    directory*
>    *hash-object /d/Dev/test//Test ''inch.txt: command returned error: 128*
> 
>    peter@scm_ws_10 MINGW64 /d/Dev/test (master)
>    $
> 
> 
> This issue is inside V2.10.x and V2.11.0.
> V2.9.0 is working correctly...

You say v2.11.0, but did you also try the new, experimental builtin difftool? You can test without reinstalling:

	git -c difftool.useBuiltin=true difftool -d ...

Ciao, Johannes

Previous: P. DuijstNext: David Aguilar
Message 2 of 6 in “Error after calling git difftool -d with”
  1. P. DuijstDec 2, 2016
  2. Johannes SchindelinDec 2, 2016
  3. David AguilarDec 5, 2016
  4. P. DuijstDec 5, 2016
  5. Johannes SchindelinDec 5, 2016
  6. David AguilarDec 9, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.