git-am: take advantage of gettextln and eval_gettextln.
[gitweb.git] / git-mergetool--lib.sh
index f5a100a567298bdcd76a6a4efadf12bf40343398..91f90acfba2a710644f4a076d27d50e0fbb33c2d 100644 (file)
@@ -265,12 +265,9 @@ run_merge_tool () {
                ;;
        p4merge)
                if merge_mode; then
-                   touch "$BACKUP"
-                       if $base_present; then
-                               "$merge_tool_path" "$BASE" "$LOCAL" "$REMOTE" "$MERGED"
-                       else
-                               "$merge_tool_path" "$LOCAL" "$LOCAL" "$REMOTE" "$MERGED"
-                       fi
+                       touch "$BACKUP"
+                       $base_present || >"$BASE"
+                       "$merge_tool_path" "$BASE" "$LOCAL" "$REMOTE" "$MERGED"
                        check_unchanged
                else
                        "$merge_tool_path" "$LOCAL" "$REMOTE"