From owner-freebsd-current Sun Feb 16 12:16:19 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA23959 for current-outgoing; Sun, 16 Feb 1997 12:16:19 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.50]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id MAA23947 for ; Sun, 16 Feb 1997 12:16:13 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA07889; Sun, 16 Feb 1997 13:14:18 -0700 From: Terry Lambert Message-Id: <199702162014.NAA07889@phaeton.artisoft.com> Subject: Re: revision diffs To: chuckr@glue.umd.edu (Chuck Robey) Date: Sun, 16 Feb 1997 13:14:18 -0700 (MST) Cc: freebsd-current@freefall.freebsd.org In-Reply-To: from "Chuck Robey" at Feb 16, 97 02:46:29 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I sometimes want to know what the last change or two was that occurred in > a file. I have the cvs tree, and by looking at the file involved, I can > find the revision numbers I'm curious about. What would the cvs command > be to show me a diff between the current version and a given earlier > revision? % cvs diff -H Usage: cvs diff [-lN] [rcsdiff-options] [[-r rev1 | -D date1] [-r rev2 | -D date2]] [files...] -l Local directory only, not recursive -D d1 Diff revision for date against working file. -D d2 Diff rev1/date1 against date2. -N include diffs for added and removed files. -r rev1 Diff revision for rev1 against working file. -r rev2 Diff rev1/date1 against rev2. % cvs diff -r XXX -r YYY to get a difference between revisions XXX and YYY. You can specify one or more files to localize the differences to a smaller scope than "all files in current directory". Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.