]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Documentation: push/receive hook references.
authorJunio C Hamano <junkio@cox.net>
Mon, 5 Dec 2005 08:32:01 +0000 (00:32 -0800)
committerJunio C Hamano <junkio@cox.net>
Mon, 5 Dec 2005 08:58:23 +0000 (00:58 -0800)
Mention documentation pages that talk about update and
post-update hooks from git-push, because a frequently asked
question is "I want X to happen when I push" and people would
not know to look at git-receive-pack documentation until they
understand that is what runs on the other end.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-push.txt
Documentation/git-receive-pack.txt

index f45ac5ee4910198fa351e56bb40333612787fcd2..2254bac16e65e6a0a097b6fef80aed6e1d6887d4 100644 (file)
@@ -16,6 +16,10 @@ DESCRIPTION
 Updates remote refs using local refs, while sending objects
 necessary to complete the given refs.
 
+You can make "interesting" things to happen on the repository
+every time you push into it, by setting up 'hooks' there.  See
+documentation for gitlink:git-receive-pack[1].
+
 
 OPTIONS
 -------
@@ -31,6 +35,7 @@ include::pull-fetch-param.txt[]
        This flag disables the check.  What this means is that the
        local repository can lose commits; use it with care.
 
+
 Author
 ------
 Written by Junio C Hamano <junkio@cox.net>
index 8afde14373723a9894e4da5b7f2281b18e75e93f..60debca48720ad54766287e8770254f57fad9d7b 100644 (file)
@@ -71,6 +71,10 @@ packed and is served via a dumb transport.
        #!/bin/sh
        exec git-update-server-info
 
+There are other real-world examples of using update and
+post-update hooks found in the Documentation/howto directory.
+
+
 OPTIONS
 -------
 <directory>::