rcsdiff
[options] [diff_options] filesCompare revisions via diff. Specify revisions using -r
as follows:
# of Revisions | Comparison Made |
---|---|
None | Working file against latest revision. |
One | Working file against specified revision. |
Two | One revision against the other. |
rcsdiff accepts the standard options -q
, -V
, -V
n, -T
, -x
, and -z
, as well as diff_options, which can be any valid diff option. rcsdiff exits with a status of 0 (no differences), 1 (some differences), or 2 (unknown problem). The -c
option to diff can be very useful with rcsdiff.
rcsdiff prints "retrieving revision ..." messages to standard error, as well as a line of equals signs for separating multiple files. It is often useful to redirect standard error and standard output to the same file.
-k
cWhen comparing revisions, expand keywords using style c. (See co for values of c.)
-r
R1Use revision R1 in the comparison.
-r
R2Use revision R2 in the comparison. (-r
R1 must also be specified.)
Compare the current working file against the last checked-in version:
rcsdiff -c ch19.sgm 2>&1 | more
Compare the current working file against the very first version:
rcsdiff -c -r1.1 ch19.sgm 2>&1 | more
Compare two earlier versions of a file against each other:
rcsdiff -c -r1.3 -r1.4 ch19.sgm 2>&1 | more