Skip to content

Commit

Permalink
Merge branch 'cj/p4merge' into maint
Browse files Browse the repository at this point in the history
* cj/p4merge:
  Pass empty file to p4merge where no base is suitable.
  • Loading branch information
Junio C Hamano committed May 13, 2011
2 parents 8272bca + 0a0ec7b commit e82c746
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions git-mergetool--lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,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"
Expand Down

0 comments on commit e82c746

Please sign in to comment.