Skip to content

Commit 0d18e41

Browse files
andyparkinsJunio C Hamano
authored andcommitted
doc: hooks.txt said post-commit default sends an email, it doesn't
The default post-commit hook is actually empty; it is the update hook that sends an email. This patch corrects hooks.txt to reflect that. Signed-off-by: Andy Parkins <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b693620 commit 0d18e41

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Documentation/hooks.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ parameter, and is invoked after a commit is made.
9090
This hook is meant primarily for notification, and cannot affect
9191
the outcome of `git-commit`.
9292

93-
The default 'post-commit' hook, when enabled, demonstrates how to
94-
send out a commit notification e-mail.
95-
9693
update
9794
------
9895

@@ -130,6 +127,8 @@ The standard output of this hook is sent to `stderr`, so if you
130127
want to report something to the `git-send-pack` on the other end,
131128
you can simply `echo` your messages.
132129

130+
The default 'update' hook, when enabled, demonstrates how to
131+
send out a notification e-mail.
133132

134133
post-update
135134
-----------

0 commit comments

Comments
 (0)