1RCSDIFF(1) General Commands Manual RCSDIFF(1)
2
3
4
6 rcsdiff - compare RCS revisions
7
9 rcsdiff [ -ksubst ] [ -q ] [ -rrev1 [ -rrev2 ] ] [ -T ] [ -V[n] ] [
10 -xsuffixes ] [ -zzone ] [ diff options ] file ...
11
13 rcsdiff runs diff(1) to compare two revisions of each RCS file given.
14
15 Filenames matching an RCS suffix denote RCS files; all others denote
16 working files. Names are paired as explained in ci(1).
17
18 The option -q suppresses diagnostic output. Zero, one, or two revi‐
19 sions may be specified with -r. The option -ksubst affects keyword
20 substitution when extracting revisions, as described in co(1); for ex‐
21 ample, -kk -r1.1 -r1.2 ignores differences in keyword values when com‐
22 paring revisions 1.1 and 1.2. To avoid excess output from locker name
23 substitution, -kkvl is assumed if (1) at most one revision option is
24 given, (2) no -k option is given, (3) -kkv is the default keyword sub‐
25 stitution, and (4) the working file's mode would be produced by co -l.
26 See co(1) for details about -T, -V, -x and -z. Otherwise, all options
27 of diff(1) that apply to regular files are accepted, with the same
28 meaning as for diff.
29
30 If both rev1 and rev2 are omitted, rcsdiff compares the latest revision
31 on the default branch (by default the trunk) with the contents of the
32 corresponding working file. This is useful for determining what you
33 changed since the last checkin.
34
35 If rev1 is given, but rev2 is omitted, rcsdiff compares revision rev1
36 of the RCS file with the contents of the corresponding working file.
37
38 If both rev1 and rev2 are given, rcsdiff compares revisions rev1 and
39 rev2 of the RCS file.
40
41 Both rev1 and rev2 may be given numerically or symbolically.
42
44 The command
45
46 rcsdiff f.c
47
48 compares the latest revision on the default branch of the RCS file to
49 the contents of the working file f.c.
50
52 RCSINIT
53 Options prepended to the argument list, separated by spaces. A
54 backslash escapes spaces within an option. The RCSINIT options
55 are prepended to the argument lists of most RCS commands. Use‐
56 ful RCSINIT options include -q, -V, -x, and -z.
57
58 RCS_MEM_LIMIT
59 Normally, for speed, commands either memory map or copy into
60 memory the RCS file if its size is less than the memory-limit,
61 currently defaulting to ``unlimited''. Otherwise (or if the
62 initially-tried speedy ways fail), the commands fall back to us‐
63 ing standard i/o routines. You can adjust the memory limit by
64 setting RCS_MEM_LIMIT to a numeric value lim (measured in kilo‐
65 bytes). An empty value is silently ignored. As a side effect,
66 specifying RCS_MEM_LIMIT inhibits fall-back to slower routines.
67
68 TMPDIR Name of the temporary directory. If not set, the environment
69 variables TMP and TEMP are inspected instead and the first value
70 found is taken; if none of them are set, a host-dependent de‐
71 fault is used, typically /tmp.
72
74 Exit status is 0 for no differences during any comparison, 1 for some
75 differences, 2 for trouble.
76
78 Author: Walter F. Tichy.
79 Manual Page Revision: 5.10.1; Release Date: 2022-11-07.
80 Copyright © 2010-2022 Thien-Thi Nguyen.
81 Copyright © 1990, 1991, 1992, 1993 Paul Eggert.
82 Copyright © 1982, 1988, 1989 Walter F. Tichy.
83
85 ci(1), co(1), diff(1), ident(1), rcs(1), rcsmerge(1), rlog(1).
86
87 Walter F. Tichy, RCS--A System for Version Control, Software--Practice
88 & Experience 15, 7 (July 1985), 637-654.
89
90 The full documentation for RCS is maintained as a Texinfo manual. If
91 the info(1) and RCS programs are properly installed at your site, the
92 command
93
94 info rcs
95
96 should give you access to the complete manual. Additionally, the RCS
97 homepage:
98
99 http://www.gnu.org/software/rcs/
100
101 has news and links to the latest release, development site, etc.
102
103
104
105GNU RCS 5.10.1 2022-11-07 RCSDIFF(1)