💾 Archived View for yasendfile.org › TipTricks › rcs.gmi captured on 2024-05-12 at 15:08:05. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-03-20)
-=-=-=-=-=-=-
Written by Wim Stockman - on 05 February 2023.
The RCS system is a revision system for 1 file at a time.
it creates a database file, with your "filename,v" it adds ",v" to it
if you want to unclutter your working directory of all the ",v" files create a uppercase RCS directory.
than it automaticly keeps your ",v" files there.
> ci filename
this moves the file into the RCS system
RCS will ask for some description of the file
the filename is gone , and the "filename,v" is created
> co filename
fetches the latest revision as read-only file
> co -l filename
fetches the latest revision as locked writable file
now you can make your changes
after your changes are finished and you want to save your file into the RCS
> ci filename
this save the filename into the RCS system but your file is gone.
you can add a commit message
> ci -u file --> keep a read-only unlocked copy
> ci -l file --> keep a writable locked copy
> rcsdiff -u filename
shows the diffs
if you want to colorize you can pipe it through colordiff.
> rcsdiff -u filename | colordiff
> rlog filename
gives you on overview of the differents commits
> rlog
use the revision number to get the specific version of a file
> co -r1.1 filename