mergetools / defaultson commit test: rename $satisfied to $satisfied_prereq (f3cfc3b)
   1# Redefined by builtin tools
   2can_merge () {
   3        return 0
   4}
   5
   6can_diff () {
   7        return 0
   8}
   9
  10diff_cmd () {
  11        merge_tool_cmd="$(get_merge_tool_cmd "$1")"
  12        if test -z "$merge_tool_cmd"
  13        then
  14                status=1
  15                break
  16        fi
  17        ( eval $merge_tool_cmd )
  18        status=$?
  19        return $status
  20}
  21
  22merge_cmd () {
  23        merge_tool_cmd="$(get_merge_tool_cmd "$1")"
  24        if test -z "$merge_tool_cmd"
  25        then
  26                status=1
  27                break
  28        fi
  29        trust_exit_code="$(git config --bool \
  30                mergetool."$1".trustExitCode || echo false)"
  31        if test "$trust_exit_code" = "false"
  32        then
  33                touch "$BACKUP"
  34                ( eval $merge_tool_cmd )
  35                status=$?
  36                check_unchanged
  37        else
  38                ( eval $merge_tool_cmd )
  39                status=$?
  40        fi
  41        return $status
  42}
  43
  44translate_merge_tool_path () {
  45        echo "$1"
  46}