On 2008-05-28 at 21:09:24 [+0200], Rene Gollent <anevilyak@xxxxxxxxx> wrote: > On Wed, May 28, 2008 at 2:06 PM, Andreas Färber <andreas.faerber@xxxxxx> > wrote: > > > > I can't argue against that then. > > > > OSX v10.5 man page (dated 2003/05/08, v2.5.8) has it different and so does > > the GNU diffutils manual: > > http://www.gnu.org/software/diffutils/manual/html_node/patch-Directories.html#patch%20Directories > > > > Let's conclude that it might differ between versions or systems. Stephan, > > check patch --help, and in doubt use --dry-run first. > > I might be wrong, the way it's worded makes it somewhat ambiguous in > the case where the path to the file doesn't start with a /, since all > its examples involve a leading / :) The way it's worded to me says > that if it has a/b as a relative path and you do -p0, it should strip > the a but leave the / alone, but I'd need to test that. Not really a > big concern though. I haven't seen absolute paths in diffs yet, but for relative paths Andreas is definitely right. -p0 strips nothing, -p1 one path component, and so on. CU, Ingo