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"
20 # Check whether we should use 'meld --output <file>'
21 check_meld_for_output_version () {
22 meld_path="$(git config mergetool.meld.path)"
23 meld_path="${meld_path:-meld}"
25 if meld_has_output_option=$(git config --bool mergetool.meld.hasOutput)
27 : use configured value
28 elif "$meld_path" --help 2>&1 |
29 grep -e '--output=' -e '\[OPTION\.\.\.\]' >/dev/null
31 : old ones mention --output and new ones just say OPTION...
32 meld_has_output_option=true
34 meld_has_output_option=false