1<div id="commit-files"></div>
2<div class="header">
3<p>
4Next: [[cvs: Rcsinfo#Rcsinfo|rcsinfo]], Previous: [[cvs: The cvswrappers file#The cvswrappers file|Wrappers]], Up: [[cvs: Reference manual for Administrative files#Reference manual for Administrative files|Administrative files]] &nbsp; |[[cvs: Index#SEC_Contents|Contents]]||[[cvs: Index#Index|Index]]|</p>
5</div>
6
7----
8
9<div id="The-commit-support-files"></div>
10=== The commit support files ===
11<div id="index-Committing_002c-administrative-support-files"></div>
12
13The &lsquo;<code>-i</code>&rsquo; flag in the &lsquo;<tt>modules</tt>&rsquo; file can be
14used to run a certain program whenever files are
15committed (see [[cvs: The modules file#The modules file|modules]]).  The files described in
16this section provide other, more flexible, ways to run
17programs whenever something is committed.
18
19There are three kind of programs that can be run on
20commit.  They are specified in files in the repository,
21as described below.  The following table summarizes the
22file names and the purpose of the corresponding
23programs.
24
25;&lsquo;<tt>commitinfo</tt>&rsquo;
26: The program is responsible for checking that the commit is allowed.  If it exits with a non-zero exit status the commit will be aborted.
27
28;&lsquo;<tt>verifymsg</tt>&rsquo;
29: The specified program is used to evaluate the log message, and possibly verify that it contains all required fields.  This is most useful in combination with the &lsquo;<tt>rcsinfo</tt>&rsquo; file, which can hold a log message template (see [[cvs: Rcsinfo#Rcsinfo|rcsinfo]]).
30
31;&lsquo;<tt>editinfo</tt>&rsquo;
32: The specified program is used to edit the log message, and possibly verify that it contains all required fields.  This is most useful in combination with the &lsquo;<tt>rcsinfo</tt>&rsquo; file, which can hold a log message template (see [[cvs: Rcsinfo#Rcsinfo|rcsinfo]]).  (obsolete)
33
34;&lsquo;<tt>loginfo</tt>&rsquo;
35: The specified program is called when the commit is complete.  It receives the log message and some additional information and can store the log message in a file, or mail it to appropriate persons, or maybe post it to a local newsgroup, or&hellip;  Your imagination is the limit!
36
37 [[cvs: The common syntax#The common syntax|&bull; syntax]]::                      The common syntax
38 [[cvs: Commitinfo#Commitinfo|&bull; commitinfo]]::                  Pre-commit checking
39 [[cvs: Verifying log messages#Verifying log messages|&bull; verifymsg]]::                   How are log messages evaluated?
40 [[cvs: Editinfo#Editinfo|&bull; editinfo]]::                    Specifying how log messages are created
41                                 (obsolete)
42 [[cvs: Loginfo#Loginfo|&bull; loginfo]]::                     Where should log messages be sent?
43
44
45----
46
47<div class="header">
48<p>
49Next: [[cvs: Rcsinfo#Rcsinfo|rcsinfo]], Previous: [[cvs: The cvswrappers file#The cvswrappers file|Wrappers]], Up: [[cvs: Reference manual for Administrative files#Reference manual for Administrative files|Administrative files]] &nbsp; |[[cvs: Index#SEC_Contents|Contents]]||[[cvs: Index#Index|Index]]|</p>
50</div>
51This document was generated on <i>a sunny day</i> using [http://www.nongnu.org/texi2html/ <i>texi2html</i>].
52