From: David Aguilar Date: Fri, 20 Jan 2012 07:47:35 +0000 (-0800) Subject: mergetool: Provide an empty file when needed X-Git-Tag: v1.7.9.1~18^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ec245ba04944473ba6657a826643ef90ed02b51d;hp=ec245ba04944473ba6657a826643ef90ed02b51d;p=git.git mergetool: Provide an empty file when needed Some merge tools cannot cope when $LOCAL, $BASE, or $REMOTE are missing. $BASE can be missing when two branches independently add the same filename. Provide an empty file to make these tools happy. When a delete/modify conflict occurs, $LOCAL and $REMOTE can also be missing. We have special case code to handle such case so this change may not affect that codepath, but try to be consistent and create an empty file for them anyway. Reported-by: Jason Wenger Signed-off-by: David Aguilar Signed-off-by: Junio C Hamano ---