rcsdiff.1 revision 256198
160107Sobrien.de Id
25347Ssos.ds Rv \\$3
35347Ssos.ds Dt \\$4
45347Ssos..
55347Ssos.Id $FreeBSD: head/gnu/usr.bin/rcs/rcsdiff/rcsdiff.1 50472 1999-08-27 23:37:10Z peter $
65347Ssos.ds r \&\s-1RCS\s0
732822Syokota.if n .ds - \%--
85347Ssos.if t .ds - \(em
96851Ssos.TH RCSDIFF 1 \*(Dt GNU
105347Ssos.SH NAME
115347Ssosrcsdiff \- compare RCS revisions
125347Ssos.SH SYNOPSIS
135347Ssos.B rcsdiff
145347Ssos[
155347Ssos.BI \-k subst
165347Ssos] [
175347Ssos.B \-q
185347Ssos] [
195347Ssos.BI \-r rev1
207420Ssos[
215347Ssos.BI \-r rev2
225347Ssos] ] [
235347Ssos.B \-T
2461117Sroberto] [
255347Ssos.RI "\f3\-V\fP[" n ]
265347Ssos] [
275347Ssos.BI \-x suffixes
285347Ssos] [
295347Ssos.BI \-z zone
305347Ssos] [
315347Ssos.I "diff options"
3232822Syokota]
335347Ssos.I "file .\|.\|."
345347Ssos.SH DESCRIPTION
355347Ssos.B rcsdiff
365347Ssosruns
375347Ssos.BR diff (1)
385347Ssosto compare two revisions of each \*r file given.
395347Ssos.PP
405347SsosPathnames matching an \*r suffix denote \*r files;
415347Ssosall others denote working files.
425347SsosNames are paired as explained in
435347Ssos.BR ci (1).
445347Ssos.PP
455347SsosThe option
465347Ssos.B \-q
475347Ssossuppresses diagnostic output.
485347SsosZero, one, or two revisions may be specified with
495347Ssos.BR \-r .
505347SsosThe option
515347Ssos.BI \-k subst
525347Ssosaffects keyword substitution when extracting
535347Ssosrevisions, as described in
545347Ssos.BR co (1);
555347Ssosfor example,
565347Ssos.B "\-kk\ \-r1.1\ \-r1.2"
575347Ssosignores differences in keyword values when comparing revisions
585347Ssos.B 1.1
595347Ssosand
605347Ssos.BR 1.2 .
6143334SyokotaTo avoid excess output from locker name substitution,
625347Ssos.B \-kkvl
6332822Syokotais assumed if (1) at most one revision option is given,
645347Ssos(2) no
655347Ssos.B \-k
665347Ssosoption is given, (3)
675347Ssos.B \-kkv
685347Ssosis the default keyword substitution, and
695347Ssos(4) the working file's mode would be produced by
705347Ssos.BR "co\ \-l".
715347SsosSee
725347Ssos.BR co (1)
735347Ssosfor details
745347Ssosabout
7543334Syokota.BR \-T ,
7643334Syokota.BR \-V ,
775347Ssos.B \-x
785347Ssosand
795347Ssos.BR \-z .
805347SsosOtherwise, all options of
815347Ssos.BR diff (1)
825994Ssosthat apply to regular files are accepted, with the same meaning as for
835347Ssos.BR diff .
845347Ssos.PP
855347SsosIf both
865347Ssos.I rev1
875347Ssosand
885347Ssos.I rev2
896045Ssosare omitted,
905347Ssos.B rcsdiff
915347Ssoscompares the latest revision on the
925347Ssosdefault branch (by default the trunk)
935347Ssoswith the contents of the corresponding working file.  This is useful
945347Ssosfor determining what you changed since the last checkin.
9518194Ssos.PP
965347SsosIf
975347Ssos.I rev1
9874119Sacheis given, but
995347Ssos.I rev2
1005347Ssosis omitted,
1015347Ssos.B rcsdiff
1025347Ssoscompares revision
1035347Ssos.I rev1
1045347Ssosof the \*r file with
1055347Ssosthe contents of the corresponding working file.
1065347Ssos.PP
1075347SsosIf both
10874119Sache.I rev1
1096851Ssosand
11043334Syokota.I rev2
11143334Syokotaare given,
11243334Syokota.B rcsdiff
11343334Syokotacompares revisions
11443334Syokota.I rev1
115and
116.I rev2
117of the \*r file.
118.PP
119Both
120.I rev1
121and
122.I rev2
123may be given numerically or symbolically.
124.SH EXAMPLE
125The command
126.LP
127.B "        rcsdiff  f.c"
128.LP
129compares the latest revision on the default branch of the \*r file
130to the contents of the working file
131.BR f.c .
132.SH ENVIRONMENT
133.TP
134.B \s-1RCSINIT\s0
135options prepended to the argument list, separated by spaces.
136See
137.BR ci (1)
138for details.
139.SH DIAGNOSTICS
140Exit status is 0 for no differences during any comparison,
1411 for some differences, 2 for trouble.
142.SH IDENTIFICATION
143Author: Walter F. Tichy.
144.br
145Manual Page Revision: \*(Rv; Release Date: \*(Dt.
146.br
147Copyright \(co 1982, 1988, 1989 Walter F. Tichy.
148.br
149Copyright \(co 1990, 1991, 1992, 1993 Paul Eggert.
150.SH "SEE ALSO"
151ci(1), co(1), diff(1), ident(1), rcs(1), rcsintro(1), rcsmerge(1), rlog(1)
152.br
153Walter F. Tichy,
154\*r\*-A System for Version Control,
155.I "Software\*-Practice & Experience"
156.BR 15 ,
1577 (July 1985), 637-654.
158.br
159