文件操作 - p4merge
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/git-core/mergetools/p4merge
编辑文件内容
diff_cmd () { empty_file= # p4merge does not like /dev/null if test "/dev/null" = "$LOCAL" then LOCAL="$(create_empty_file)" fi if test "/dev/null" = "$REMOTE" then REMOTE="$(create_empty_file)" fi "$merge_tool_path" "$LOCAL" "$REMOTE" if test -n "$empty_file" then rm -f "$empty_file" fi } diff_cmd_help () { echo "Use HelixCore P4Merge (requires a graphical session)" } merge_cmd () { if ! $base_present then cp -- "$LOCAL" "$BASE" create_virtual_base "$BASE" "$REMOTE" fi "$merge_tool_path" "$BASE" "$REMOTE" "$LOCAL" "$MERGED" } create_empty_file () { empty_file="${TMPDIR:-/tmp}/git-difftool-p4merge-empty-file.$$" >"$empty_file" printf "%s" "$empty_file" } merge_cmd_help () { echo "Use HelixCore P4Merge (requires a graphical session)" }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件