mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
![Junio C Hamano](/assets/img/avatar_default.png)
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>
9 lines
152 B
Bash
9 lines
152 B
Bash
#!/bin/sh
|
|
#
|
|
# An example hook script that is called after a successful
|
|
# commit is made.
|
|
#
|
|
# To enable this hook, make this file executable.
|
|
|
|
: Nothing
|