This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: cvs diff howto?
- From: Christian Groessler <chris at groessler dot org>
- To: binutils at sources dot redhat dot com
- Date: 27 Aug 2002 01:16:37 +0200
- Subject: 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