patchfiles and specifying -p

Blair Zajac blair at orcaware.com
Sat May 15 11:03:24 PDT 2010


How about extending patchfiles to specify the number of directory path elements 
to strip from the patch, like patch's -p?

This would allow us to use upstream patches without modification if they are 
generated with git, which prepends "a/" and "b/" to the paths.

The format could be

patchfiles foo.diff:2

which would be equivalent to "patch -p2 < foo.diff".

Blair

-- 
Blair Zajac, Ph.D.
CTO, OrcaWare Technologies
<blair at orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/


More information about the macports-dev mailing list