2 "$merge_tool_path" -u -e "$LOCAL" "$REMOTE"
7 # mergetool.winmerge.trustExitCode is implicitly false.
8 # touch $BACKUP so that we can check_unchanged.
10 "$merge_tool_path" -u -e -dl Local -dr Remote \
11 "$LOCAL" "$REMOTE" "$MERGED"
15 translate_merge_tool_path() {
16 # Use WinMergeU.exe if it exists in $PATH
17 if type -p WinMergeU.exe >/dev/null 2>&1
23 # Look for WinMergeU.exe in the typical locations
24 winmerge_exe="WinMerge/WinMergeU.exe"
25 for directory in $(env | grep -Ei '^PROGRAM(FILES(\(X86\))?|W6432)=' |
26 cut -d '=' -f 2- | sort -u)
28 if test -n "$directory" && test -x "$directory/$winmerge_exe"
30 printf '%s' "$directory/$winmerge_exe"