manpagez: man pages & more
info cvs
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

C.6 Taginfo

The ‘taginfo’ file defines programs to execute when someone executes a tag or rtag command. The ‘taginfo’ file has the standard form for trigger scripts (see section The Trigger Scripts), where each line is a regular expression followed by a command to execute (see section The common syntax). The arguments passed to the command are, in order, the tagname, operation (add for tag, mov for tag -F, and del for tag -d), repository, and any remaining are pairs of filename revision. A non-zero exit of the filter program will cause the tag to be aborted.

Here is an example of using the ‘taginfo’ file to log tag and rtag commands. In the ‘taginfo’ file put:

 
ALL /usr/local/cvsroot/CVSROOT/loggit

Where ‘/usr/local/cvsroot/CVSROOT/loggit’ contains the following script:

 
#!/bin/sh
echo "$@" >>/home/kingdon/cvsroot/CVSROOT/taglog

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.