Skip to content

Commit

Permalink
doc: hooks.txt said post-commit default sends an email, it doesn't
Browse files Browse the repository at this point in the history
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 <andyparkins@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Andy Parkins authored and Junio C Hamano committed Feb 3, 2007
1 parent b693620 commit 0d18e41
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Documentation/hooks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ parameter, and is invoked after a commit is made.
This hook is meant primarily for notification, and cannot affect
the outcome of `git-commit`.

The default 'post-commit' hook, when enabled, demonstrates how to
send out a commit notification e-mail.

update
------

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

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

post-update
-----------
Expand Down

0 comments on commit 0d18e41

Please sign in to comment.