info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cvs diff: Include contents of added files?


From: Mark D. Baushke
Subject: Re: cvs diff: Include contents of added files?
Date: Wed, 05 May 2004 12:22:04 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Toralf <address@hidden> writes:

> When I run 'cvs diff' on a directory where a new file has been added,
> but not commited, the output will contain a line saying
> 
> cvs server: tst.c is a new entry, no comparison available
> 
> (if the name of the file is tst.c)
> 
> Is it possible to have the compelete contents of the file listed as
> added lines instead? Differently put, can I get cvs to include the
> output of
> diff <options> /dev/null tst.c
> instead of printing the above mentioned message?

Yes, use the -N switch to the cvs diff command. For example:

    cvs diff -Nup tst.c

should do what you want.

        Enjoy!
        -- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFAmT7b3x41pRYZE/gRAjteAKDVPXNIvKPvPkytsZ7LjJ8qK2U9kQCfaAVN
XGdEjaFnCsdLow5euXj5iNk=
=NRQR
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]