git/import: use patch(1)

we have a new, pretty patch(1), lets use it.
This commit is contained in:
Ori Bernstein 2022-06-04 23:35:49 +00:00
parent 5d37407e3c
commit 926be5e34e

View file

@ -78,7 +78,7 @@ fn apply @{
rc -c ' rc -c '
echo applying $msg | sed 1q echo applying $msg | sed 1q
date=`{seconds $date} date=`{seconds $date}
if(! files=`$nl{ape/patch -Ep1 < $diffpath | grep ''^patching file'' | sed ''s/^patching file `(.*)''''/\1/''}) if(! files=`$nl{patch -p1 < $diffpath})
die ''patch failed'' die ''patch failed''
for(f in $files){ for(f in $files){
if(test -e $f) if(test -e $f)