shithub: rc

ref: a5d881764e2f96d0fba934a023e0565282a5af9a
dir: /bin/pa4/

View raw version
#!/bin/rc
for(i in $*){
	if(! test -f $i){
		echo usage: $0 patch..
		exit usage
	}
	h=`{sed 's,--- //.git/fs/.*,git,;q' $i}
	p=1
	if(~ git $h)
		p=0
	patch -p$p <$i
}