compare RCS revisions (UNIX)
Print the version number:
rcsdiff -VCompare RCS revisions:
rcsdiff [options] [diff_options] file...
Compare the latest revision on the default branch of the RCS file RCS/f.c,v to the contents of the f.c. working file:
rcsdiff f.c
The rcsdiff utility runs diff to compare two revisions of each RCS file given. Filenames ending in ,v denote RCS files; all others are assumed to be working files. The rcsdiff utility derives the working filename from the RCS filename and vice versa, as explained for the co utility. You can specify pairs consisting of an RCS filename and a working filename.
All options of diff that apply to regular files are accepted, with the same meaning as for diff.
The comparisons rcs performs depend on whether you specify rev1 and/or rev2:
If you: | Then rcsdiff compares: |
---|---|
omit both rev1 and rev2 | the latest revision on the default branch (by default the trunk) with the contents of the corresponding working file. This is useful for determining what you changed since the last checkin. |
specify rev1, but omit rev2 | revision rev1 of the RCS file with the contents of the corresponding working file. |
specify both rev1 and rev2 | revisions rev1 and rev2 of the RCS file. |
The -k option affects keyword substitution when extracting revisions, as described in the co utility. For example:
-kk -r1.1 -r1.2
ignores differences in keyword values when comparing revisions 1.1 and 1.2.
To avoid excess output from locker name substitution, -kkvl is assumed provided that:
GNU