-
- Downloads
Add commit hook and make the verification customizable.
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 <junkio@cox.net>
Showing
- git-commit-script 23 additions, 52 deletionsgit-commit-script
- templates/hooks--commit-msg 14 additions, 0 deletionstemplates/hooks--commit-msg
- templates/hooks--post-commit 8 additions, 0 deletionstemplates/hooks--post-commit
- templates/hooks--pre-commit 60 additions, 0 deletionstemplates/hooks--pre-commit
templates/hooks--commit-msg
0 → 100644
templates/hooks--post-commit
0 → 100644
templates/hooks--pre-commit
0 → 100644
Please register or sign in to comment