git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] doc: hooks.txt said post-commit default sends an email, it doesn't

From
APAndy Parkins <andyparkins@gmail.com>
Date
Feb 2, 2007, 23:56 UTC
Message-ID
<200702022356.11180.andyparkins@gmail.com>

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>
---
 Documentation/hooks.txt |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/Documentation/hooks.txt b/Documentation/hooks.txt
index e3b76f9..b083290 100644
--- a/Documentation/hooks.txt
+++ b/Documentation/hooks.txt
@@ -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
 ------
 
@@ -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
 -----------
-- 
1.5.0.rc1.gf4b6c
Message 1 of 1 in “doc: hooks.txt said post-commit default sends an email, it doesn't”
  1. doc: hooks.txt said post-commit default sends an email, it doesn'tAndy Parkins, Feb 2, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.