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

Re: gitk external diff on Windows

From
EEErik Cervin Edin <erik@cervined.in>
Date
Mar 4, 2022, 08:37 UTC
Message-ID
<CA+JQ7M8SF2cmZ7jagH-VdrZeR9Kfcw0GV=A1fpDeDubwJS1B8g@mail.gmail.com>
In-Reply-To
<87fso0qphj.fsf@vps.thesusis.net>
On Wed, Mar 2, 2022 at 11:32 PM Phillip Susi <phill@thesusis.net> wrote:
>
> I'm running git version 2.28.0.windows.1 on Windows and trying to set it
> up to run winmerge as the external diff tool.

This is really a Git for Windows specific issue and more appropriately asked here https://groups.google.com/g/git-for-windows

But I'll give a quick response here.
Show 6 quoted lines
> contains "cmd /c" so I tried prefixing the path to the batch file with
> that, and instead I get an error that says:
>
> cmd /c C:/Program Files/WinMerge/winmerge.bat: command failed: couldn't
> execute "cmd \c C:\Program Files\WinMerge\winmerge.bat": no such file or
> directory.

I'm guessing you're running this from git bash, in which case try cmd //c C:/Program Files/WinMerge/winmerge.bat See https://stackoverflow.com/a/21907301

Basically a song and dance has to be done to work with Windows quirks.

If you're still having issues, it's best to follow up in the Git for Windows discussion group https://groups.google.com/g/git-for-windows

Previous: Phillip SusiNext: Phillip Susi
Message 2 of 3 in “gitk external diff on Windows”
  1. Phillip SusiMar 2, 2022
  2. Erik Cervin EdinMar 4, 2022
  3. Phillip SusiMar 4, 2022

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.