From: Linus Torvalds Date: Wed, 18 May 2005 00:15:56 +0000 (-0700) Subject: Make "applypatch" use the "-E" flag to patch. X-Git-Tag: v0.99.2~51^2~12 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6a9853cd4587c9dd16553b429c6d4a9d8111a396;p=git.git Make "applypatch" use the "-E" flag to patch. Always remove empty files, regardless of how the diff showed them to have become empty. --- diff --git a/applypatch b/applypatch index 160931d7..9c191ae7 100755 --- a/applypatch +++ b/applypatch @@ -60,7 +60,7 @@ echo git-check-files $(cat $FILES) || exit 1 git-checkout-cache -q $(cat $FILES) || exit 1 -patch -u --no-backup-if-mismatch -f -p1 --fuzz=0 --input=$PATCHFILE || exit 1 +patch -E -u --no-backup-if-mismatch -f -p1 --fuzz=0 --input=$PATCHFILE || exit 1 git-update-cache --add --remove $(cat $FILES) || exit 1 tree=$(git-write-tree) || exit 1 echo Wrote tree $tree