Name
watch
Synopsis
cvs [cvs-options
] watchcommand
[options
] [files
...]
Set files to be watched or add users to the file watch list.
Users who are watching a file are notified via the script in the
notify file in the
repository’s CVSROOT
directory when other users perform specific actions.
Essential CVS explains uses of the cvs watch
family of commands. See also
edit, editors, unedit, and watchers.
Tip
CVS does not notify you of your own changes.
Synonyms: none.
Standard subcommand options: -l
,
-R
.
Commands
on
andoff
The
on
andoff
subcommands control whether the file or files are marked as being watched. If a file is marked as being watched, CVS sets it as read-only when it is checked out of the repository. Without this read-only setting, developers might forget to usecvs edit
when editing a file.If the argument is a directory, all current files in the directory and all new files added to that directory in the future are set as being watched.
The
on
andoff
subcommands set whether a file is watchable, but they do not set who is watching it; theadd
andremove
subcommands set whether or not you are watching a file.add
andremove
Use the
add
andremove
subcommands to set or remove files you want to watch. Use the-a
option to specify which actions you want to be notified of.
Option
-
-a
action
Notify the user when the designated actions occur to the file. Each
-a
designates one possible action. The-a
option can be repeated to designate multiple actions. The-a
option is usable only with the ...
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.