* question on generating a patch
@ 2001-01-09 4:32 David L. Parsley
2001-01-09 5:14 ` Peter Samuelson
0 siblings, 1 reply; 2+ messages in thread
From: David L. Parsley @ 2001-01-09 4:32 UTC (permalink / raw)
To: linux-kernel
I read the FAQ and SubmittingPatches, but how best to generate a patch
that moves a file from on dir to another? diff -urNP makes the patch a
lot longer than it seems like it should be... (fortunately it's just a
short header file)
Is there a better way?
regards,
David
--
David L. Parsley
Network Administrator
Roanoke College
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: question on generating a patch
2001-01-09 4:32 question on generating a patch David L. Parsley
@ 2001-01-09 5:14 ` Peter Samuelson
0 siblings, 0 replies; 2+ messages in thread
From: Peter Samuelson @ 2001-01-09 5:14 UTC (permalink / raw)
To: David L. Parsley; +Cc: linux-kernel
[David L. Parsley]
> I read the FAQ and SubmittingPatches, but how best to generate a
> patch that moves a file from on dir to another? diff -urNP makes the
> patch a lot longer than it seems like it should be...
A major weakness of the 'patch' command -- you cannot gracefully move
or rename files. Larry Wall saw this years ago and invented a hybrid
sort of patch that runs as a shar-like shell script, moving things
around before actually applying itself as a patch. But most people,
including linux-kernel, don't use lwall's patch+shar format.
- If it's a fairly small file anyway, just use 'diff -urN' and don't
worry about it.
- If it's a large file or several files, or if you are making
significant changes to said files besides moving them, you should
probably list two separate steps: first, describe the rearrangement,
perhaps as a series of 'mv' commands; second, give us a patch against
the new arrangement.
Either way, you need to make it clear what changes, if any, have been
made to a particular file "in transit". With just 'diff -urN' and no
explanation, it is hard to tell one way or the other.
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-01-09 5:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-09 4:32 question on generating a patch David L. Parsley
2001-01-09 5:14 ` Peter Samuelson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.