<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/templates/hooks--post-commit, branch v1.4.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.4.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.4.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2005-08-19T23:23:31Z</updated>
<entry>
<title>Add commit hook and make the verification customizable.</title>
<updated>2005-08-19T23:23:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-08-19T00:20:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=89e2c5f17b901edf28a8bb778ece3f6c18bbb721'/>
<id>urn:sha1:89e2c5f17b901edf28a8bb778ece3f6c18bbb721</id>
<content type='text'>
There are three hooks:

    - 'pre-commit' is given an opportunity to inspect what is
      being committed, before we invoke the EDITOR for the
      commit message;

    - 'commit-msg' is invoked on the commit log message after
      the user prepares it;

    - 'post-commit' is run after a successful commit is made.

The first two can interfere to stop the commit.  The last one is
for after-the-fact notification.

The earlier built-in commit checker is now moved to pre-commit.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
