How to generate a patch for a new file?

Kai Henningsen kaih@khms.westfalen.de
Thu Apr 22 18:46:00 GMT 2004


dk@artimi.com (Dave Korn)  wrote on 21.04.04 in <NUTMEGhHmdGOApCc1aF00000556@NUTMEG.CAM.ARTIMI.COM>:

> directory somewhere and then run "diff -pruN" against it.  Then I have to go
> through and remove all the hunks referring to CVS files.  Yech.  The

That's what the --exclude option is for.

diff -pruN --exclude=CVS dir1 dir2

(We ARE talking GNU diff, right?)

MfG Kai



More information about the Binutils mailing list