4         # p4merge does not like /dev/null
 
   5         if test "/dev/null" = "$LOCAL"
 
   7                 LOCAL="$(create_empty_file)"
 
   9         if test "/dev/null" = "$REMOTE"
 
  11                 REMOTE="$(create_empty_file)"
 
  14         "$merge_tool_path" "$LOCAL" "$REMOTE"
 
  16         if test -n "$empty_file"
 
  25                 cp -- "$LOCAL" "$BASE"
 
  26                 create_virtual_base "$BASE" "$REMOTE"
 
  28         "$merge_tool_path" "$BASE" "$REMOTE" "$LOCAL" "$MERGED"
 
  31 create_empty_file () {
 
  32         empty_file="${TMPDIR:-/tmp}/git-difftool-p4merge-empty-file.$$"
 
  35         printf "%s" "$empty_file"