Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'ms/mergetools-kdiff3-on-windows'
On Windows, mergetool has been taught to find kdiff3.exe just like
it finds winmerge.exe.

* ms/mergetools-kdiff3-on-windows:
  mergetools/kdiff3: make kdiff3 work on Windows too
  • Loading branch information
gitster committed Jul 8, 2021
2 parents e867110 + 47eb4c6 commit b7bd70d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mergetools/kdiff3
Expand Up @@ -25,3 +25,12 @@ merge_cmd () {
exit_code_trustable () {
true
}

translate_merge_tool_path() {
if type kdiff3 >/dev/null 2>/dev/null
then
echo kdiff3
else
mergetool_find_win32_cmd "kdiff3.exe" "Kdiff3"
fi
}

0 comments on commit b7bd70d

Please sign in to comment.