This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]