Is there a way to automatically add a comment when updating a file in RCS? For example, I am writing a script, and one of the functions will co -l a file, make changes, then ci -u. Now at that point, RCS waits for a comment to be entered. I want the comment to be automatically added so the script does not stop at that point. Is this even possible?

有帮助吗?

解决方案

The -m option to ci accepts a messages string. No space is permitted after the -m:

ci -u -m'This is a message' file
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top