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

Re: [PATCH] Update kdiff3 install location

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 7, 2022, 17:02 UTC
Message-ID
<xmqqedvjh8ic.fsf@gitster.g>
In-Reply-To
<pull.1376.git.1665141449621.gitgitgadget@gmail.com>

"Michael Schindler via GitGitGadget" <gitgitgadget@gmail.com> writes:

Show 6 quoted lines
> From: Michael Schindler <michael@compressconsult.com>
>
> newer versions of kdiff3 for windows install the executable for windows
> in a /bin subfolder.
> This change changes the place where the executable is searched to the new
> location if not found in %PATH%

What happens to those who already have kdiff3 on Windows and haven't upgraded to the ones installed in the /bin subfolder with this change?

Show 12 quoted lines
> diff --git a/mergetools/kdiff3 b/mergetools/kdiff3
> index ee8b3a0570e..c26a9573815 100644
> --- a/mergetools/kdiff3
> +++ b/mergetools/kdiff3
> @@ -39,6 +39,6 @@ translate_merge_tool_path() {
>  	then
>  		echo kdiff3
>  	else
> -		mergetool_find_win32_cmd "kdiff3.exe" "Kdiff3"
> +		mergetool_find_win32_cmd "kdiff3.exe" "Kdiff3/bin"
>  	fi
>  }

Will they lose the access to kdiff3 backend when they upgrade their Git to a version that includes this change, or is the old location expected to be on %PATH%? I find the latter unlikely---the original would not have bothered to use mergetool_find_win32_cmd if that were the case.

I am wondering if mergetool_find_win32_cmd should take multiple candidate directories, not just a single directory, so that users of old and new versions are both kept happy.

Thanks.
Previous: Michael Schindler via GitGitGadget
Message 2 of 2 in “Update kdiff3 install location”
  1. Update kdiff3 install locationMichael Schindler via GitGitGadget, Oct 7, 2022
  2. Junio C HamanoOct 7, 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.