The -R
option does not work with ed scripts because there is too
little information to reconstruct the reverse operation.
The -p
option makes it possible to customize a patch file to
local user directory structures without manually editing the
patch file. For example, if the filename in the patch file was:
/curds/whey/src/blurfl/blurfl.c
Setting -p 0
gives the entire pathname unmodified; -p 1
gives:
curds/whey/src/blurfl/blurfl.c
without the leading <slash>, -p 4
gives:
blurfl/blurfl.c
and not specifying -p
at all gives:
blurfl.c .