diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-04-24 08:40:02 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-04-24 08:40:02 +0000 |
commit | e6776e5a41d5c70705335adb4811121c14b7e57f (patch) | |
tree | 997d9206355242a092bd6e86fd24670da9f2ef9f /usr.bin/rcs | |
parent | de2a400e5869c34f76c246c17f4b1ff4bc1bbe27 (diff) |
make the -r description match that in rcsmerge(1), as far as is possible;
ok xsa
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r-- | usr.bin/rcs/rcsdiff.1 | 17 | ||||
-rw-r--r-- | usr.bin/rcs/rcsdiff.c | 4 |
2 files changed, 10 insertions, 11 deletions
diff --git a/usr.bin/rcs/rcsdiff.1 b/usr.bin/rcs/rcsdiff.1 index c85c8123a32..4196d304215 100644 --- a/usr.bin/rcs/rcsdiff.1 +++ b/usr.bin/rcs/rcsdiff.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rcsdiff.1,v 1.20 2006/04/19 12:57:02 jmc Exp $ +.\" $OpenBSD: rcsdiff.1,v 1.21 2006/04/24 08:40:01 jmc Exp $ .\" .\" Copyright (c) 2005 Joris Vink <joris@openbsd.org> .\" All rights reserved. @@ -24,10 +24,7 @@ .Nm .Op Fl cnquV .Op Fl k Ns Ar mode -.Oo -.Fl r Ns Ar rev -.Op Fl r Ns Ar rev2 -.Oc +.Op Fl r Ns Ar rev .Op Fl x Ns Ar suffixes .Op Fl z Ns Ar tz .Ar @@ -69,11 +66,13 @@ Specify the keyword substitution mode. .It Fl n Produces a diff in the same format that is used in the RCS files. .It Fl r Ns Ar rev -If one -r option is given, the diff is generated between the -working file and +Produces a diff with respect to revision .Ar rev . -If two -r options are given, the diff is generated between the -two revisions specified. +This option should be specified twice to generate a diff +between two specific revisions. +If only one revision is specified, +diffing is done between that revision and +the latest revision of the default branch. .It Fl q Be quiet about reporting. .It Fl u diff --git a/usr.bin/rcs/rcsdiff.c b/usr.bin/rcs/rcsdiff.c index 5d9f9cbf8c9..b28f8c28166 100644 --- a/usr.bin/rcs/rcsdiff.c +++ b/usr.bin/rcs/rcsdiff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsdiff.c,v 1.54 2006/04/24 08:10:41 xsa Exp $ */ +/* $OpenBSD: rcsdiff.c,v 1.55 2006/04/24 08:40:01 jmc Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -166,7 +166,7 @@ void rcsdiff_usage(void) { fprintf(stderr, - "usage: rcsdiff [-cnquV] [-kmode] [-rrev1 [-rrev2]] " + "usage: rcsdiff [-cnquV] [-kmode] [-rrev] " "[-xsuffixes] [-ztz] file ...\n"); } |