ref: 67f0afe458b29d4bacedb2a4139abe82c1adcf86
parent: 76e4b8fff1607a0b0c7f8ddb844bbce0aa78b7d4
author: kvik <[email protected]>
date: Sat Nov 28 22:05:13 EST 2020
git/export: diff added or deleted files against /dev/null
--- a/export
+++ b/export
@@ -57,8 +57,15 @@
next
}
{print; printf "\n"}'
- for(f in $fc)
- ape/diff -urN a/$f b/$f
+ for(f in $fc){
+ a=a/$f
+ if(! test -e $a)
+ a=/dev/null
+ b=b/$f
+ if(! test -e $b)
+ b=/dev/null
+ ape/diff -urN $a $b
+ }
} >$patchfile
if(~ $#patchdir 0){
cat $patchfile