Mail Archives: djgpp-workers/2000/10/08/13:58:30
Hello.
Eli Zaretskii wrote:
> Take a look at the section named "NOTES FOR PATCH SENDERS" in the
> Patch man page. You have violated one of the rules it sets: not to
> produce diffs where the OLD and the NEW files have different number of
> slashes. This is especially important if the patch is supposed to be
> applied with the -pN switch, as you did.
Oops, you are quite right. The info docs don't seem to mention this, as
far as I can tell. I wonder if this should be added to:
info diffutils 'Making Patches'
just to clarify for ignorant people like me. ;)
> > Why does it apply all differences to files present in the original
> > distribution OK and then change direction for the new files?
>
> Because Patch uses some complicated guesswork to find out which file
> to apply the patch to (it's not easy, contrary to how it sounds), and
> that guesswork sometimes breaks.
Oh, OK, I thought it only used the first filename and ignored the second.
OTOH if every file patch is considered to be a patch in its own right,
then this doesn't make sense. I suppose you have to consider each one
separately, in case the patch was made by concatenating several single
file patches. Hmmm, interesting.
Thanks for clarifying - user error, as usual. Bye,
--
Richard Dawe
[ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]
- Raw text -