home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Unix / cvs-960311 / lib / cvs / examples / commitinfo < prev    next >
Encoding:
Text File  |  1996-01-19  |  1.2 KB  |  28 lines

  1. #
  2. #ident    "@(#)cvs/examples:$Name:  $:$Id: commitinfo,v 1.1.1.1 1996/01/20 15:41:02 bbum Exp $"
  3. #
  4. # The "commitinfo" file is used to control pre-commit checks.
  5. # The filter on the right is invoked with the repository and a list 
  6. # of files to check.  A non-zero exit of the filter program will 
  7. # cause the commit to be aborted.
  8. #
  9. # The first entry on a line is a regular expression which is tested
  10. # against the directory that the change is being committed to, relative
  11. # to the $CVSROOT.  For the first match that is found, then the remainder
  12. # of the line is the name of the filter to run.
  13. #
  14. # If the repository name does not match any of the regular expressions in this
  15. # file, the "DEFAULT" line is used, if it is specified.
  16. #
  17. # If the name "ALL" appears as a regular expression it is always used
  18. # in addition to the first matching regex or "DEFAULT".
  19. #
  20. # NOTE:  contrib/commit_prep usage:
  21. # -r    - record directories affected by commit for use with contrib/log_accum
  22. # -c    - check for things like "$Id" near head of file, no "$Log", etc.
  23. #
  24. ^apc            $CVSROOT/CVSROOT/commit_prep -r -c
  25. ^misc            $CVSROOT/CVSROOT/commit_prep -r
  26. CVSROOT            $CVSROOT/CVSROOT/commit_prep -r -c
  27. DEFAULT            $CVSROOT/CVSROOT/commit_prep
  28.