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: cvs diff howto?


On 08/26/2002 10:58:02 AM ZE2 "Svein E. Seldal" wrote:
>
>When I add a new file into my local sandbox, say include/foobar.h, how
>can I generate a diff with this file included using cvs diff? Because
>when I try to use the cvs diff command, it only includes files that are
>present in the main repository and wont include any other.

I used to do it this way:

* checkout a fresh (unmodified) sandbox
* copy your modified sandbox and update it (cvs up -PA)
* remove CVS directories in both of them
  (find sandorg sandnew -type d -name CVS | xargs rm -rf)
* run plain diff
  (diff -pruN sandorg sandnew)

regards,
chris


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