Compare revisions via diff
. Specify revisions using
|# of Revisions
||Working file against latest revision.
||Working file against specified revision.
||One revision against the other.
accepts the standard options
, as well as diff_options
, which can be any valid diff
exits with a status of 0 (no differences), 1 (some differences), or 2 (unknown problem). The
option to diff
can be very useful with 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.
When comparing revisions, expand keywords using style c
. (See co
for values of c
Use revision R1
in the comparison.
Use revision R2
in the comparison. (
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