summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/cvs.1
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2009-04-28 09:05:41 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2009-04-28 09:05:41 +0000
commite9b897bfbbb1c20f9fd87adea48e50d90baca1b9 (patch)
tree37aae91bfe30b9590f3bd8f423fd2674a265d77f /usr.bin/cvs/cvs.1
parent94ae2faa8f192187b63be4c70d3c339085a3c7bc (diff)
support some additional diff options: -a, -b, -d, -w
ok joris@
Diffstat (limited to 'usr.bin/cvs/cvs.1')
-rw-r--r--usr.bin/cvs/cvs.127
1 files changed, 24 insertions, 3 deletions
diff --git a/usr.bin/cvs/cvs.1 b/usr.bin/cvs/cvs.1
index 9efa2f8b5b8..1ec7ca9a497 100644
--- a/usr.bin/cvs/cvs.1
+++ b/usr.bin/cvs/cvs.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: cvs.1,v 1.122 2009/03/25 09:47:26 joris Exp $
+.\" $OpenBSD: cvs.1,v 1.123 2009/04/28 09:05:39 sthen Exp $
.\"
.\" Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
.\" Copyright (c) 2004-2008 Xavier Santolaria <xsa@openbsd.org>
@@ -24,7 +24,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 25 2009 $
+.Dd $Mdocdate: April 28 2009 $
.Dt CVS 1
.Os
.Sh NAME
@@ -517,7 +517,7 @@ command is very similar to the
program, except that the differential comparisons that it generates are
between local or remote revisions of files stored in the CVS repository.
.Bd -literal -offset indent
-usage: cvs diff [-cilNnpRu]
+usage: cvs diff [-abcdilNnpRuw]
[[-D date1 | -r rev1] [-D date2 | -r rev2]]
[-k mode] [file ...]
.Ed
@@ -526,11 +526,24 @@ The
.Ic diff
command takes the following options:
.Bl -tag -width Ds -offset 3n
+.It Fl a
+Treat all files as ASCII text.
+See
+.Xr diff 1
+for more information.
+.It Fl b
+Causes trailing blanks (spaces and tabs) to be ignored, and other
+strings of blanks to compare equal.
.It Fl c
Produces a diff with three lines of context.
See
.Xr diff 1
for more information.
+.It Fl d
+Try very hard to produce a diff as small as possible.
+See
+.Xr diff 1
+for more information.
.It Xo Fl D Ar date1
.Op Fl D Ar date2
.Xc
@@ -583,6 +596,14 @@ Produces a unified diff with three lines of context.
See
.Xr diff 1
for more information.
+.It Fl w
+Is similar to
+.Fl b
+but causes whitespace (blanks and tabs) to be totally ignored.
+E.g.,
+.Dq if (\ \&a == b \&)
+will compare equal to
+.Dq if(a==b) .
.El
.Pp
Aliases: