DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

(cvs.info.gz) taginfo

Info Catalog (cvs.info.gz) postadmin (cvs.info.gz) Trigger Scripts (cvs.info.gz) posttag
 
 C.3.8 Taginfo
 -------------
 
 The `taginfo' file defines programs to execute when someone executes a
 `tag' or `rtag' command.  The `taginfo' file has the standard form for
 script hooks ( Trigger Scripts), where each line is a regular
 expression followed by a command to execute.  It supports the ALL and
 DEFAULT keywords.
 
    In addition to the common format strings ( syntax), `taginfo'
 supports:
 
 b
      tag type (`T' for branch, `N' for not-branch, or `?' for unknown,
      as during delete operations)
 
 o
      operation (`add' for `tag', `mov' for `tag -F', or `del' for `tag
      -d')
 
 t
      tag name
 
 {sVv}
      file attributes, where:
     s
           file name
 
     V
           old version number (for a move or delete operation)
 
     v
           new version number (for an add or move operation)
 
    For example, some valid format strings are `%%', `%p', `%t', `%s',
 `%{s}', and `%{sVv}'.
 
    Currently, if no format strings are specified, a default string of `
 %t %o %p %{sv}' will be appended to the command line template before
 replacement is performed, but this feature is deprecated.  It is simply
 in place so that legacy repositories will remain compatible with the
 new CVS application.  For information on updating,  Updating
 Commit Files.
 
    A non-zero exit of the filter program will cause the tag to be
 aborted.
 
    Here is an example of using `taginfo' to log `tag' and `rtag'
 commands.  In the `taginfo' file put:
 
      ALL /usr/local/cvsroot/CVSROOT/loggit %t %b %o %p %{sVv}
 
 Where `/usr/local/cvsroot/CVSROOT/loggit' contains the following script:
 
      #!/bin/sh
      echo "$@" >>/home/kingdon/cvsroot/CVSROOT/taglog
 
Info Catalog (cvs.info.gz) postadmin (cvs.info.gz) Trigger Scripts (cvs.info.gz) posttag
automatically generated byinfo2html