[Linux-disciples] patch(1)
Dylan Thurston
dthurston at barnard.edu
Wed Jul 5 12:21:28 EDT 2006
On Wed, Jul 05, 2006 at 10:49:45AM -0400, Adam Rosi-Kessel wrote:
> > One little question: what if the directories that we're
> > diffing have different numbers of slashes? How many slashes
> > do we cut out with '-p'?
According to the man patch, '-p' cuts out equal numbers of slashes from
both sets of file names.
> I can't fully parse your question as posed. Basically, you just need to
> match the root for your diff to your new root. If you are doing a recursive
> unified diff, everything in the old directory tree will start from the same
> "top level" depth; you just need to match that depth to your new directory
> tree.
As I understood Stephen's question, this is just what he was trying to
do: match the depths of the roots of the 'before' and 'after' trees.
It's usually most convenient to arrange to use '-p1'.
Peace,
Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060705/4fb5f235/attachment.pgp
More information about the Linux-disciples
mailing list