This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: How to generate a patch for a new file?
- From: "Dave Korn" <dk at artimi dot com>
- To: <binutils at sources dot redhat dot com>
- Date: Wed, 21 Apr 2004 19:19:38 +0100
- Subject: RE: How to generate a patch for a new file?
> -----Original Message-----
> From: binutils-owner On Behalf Of Peter Barada
> Sent: 21 April 2004 19:11
> I've got some new testcases for the ColdFire mac/emac
> instructions, and
> I'm trying to figure out the best way to generate a patch that incudes
> the new files as well as the modified files.
>
> Any suggestions are appreciated.
I too wish that cvs diff would pass the -N option. But it doesn't, so
generally I just checkout an unmodified copy of the original tree to a spare
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
alternative is to use cvs diff to get the changes, then use "diff -N"
against the individual files you've added, and append the patches together.
Also yech.
Hmmm, actually, passing -N down to diff might make a very useful patch for
CVS, mightn't it?
cheers,
DaveK
--
Can't think of a witty .sigline today....