post-commit

Name

post-commit — Notification of a successful commit.

Description

The post-commit hook is run after the transaction is committed, and a new revision created. Most people use this hook to send out descriptive emails about the commit or to notify some other tool (such as an issue tracker) that a commit has happened. Some configurations also use this hook to trigger backup processes.

The output from and exit value returned by the post-commit hook program are ignored.

Input Parameter(s)

The command-line arguments passed to the hook program, in order, are:

  1. repository path

  2. revision number created by the commit

Common Uses

commit notification, tool integration