2 "$merge_tool_path" "$LOCAL" "$REMOTE"
6 if test -z "${meld_has_output_option:+set}"
8 check_meld_for_output_version
11 if test "$meld_has_output_option" = true
13 "$merge_tool_path" --output "$MERGED" \
14 "$LOCAL" "$BASE" "$REMOTE"
16 "$merge_tool_path" "$LOCAL" "$MERGED" "$REMOTE"
21 # Check whether 'meld --output <file>' is supported
22 check_meld_for_output_version () {
23 meld_path="$(git config mergetool.meld.path)"
24 meld_path="${meld_path:-meld}"
26 if "$meld_path" --help 2>&1 | grep -e --output >/dev/null
28 meld_has_output_option=true
30 meld_has_output_option=false