X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=Documentation%2Fhooks.txt;h=4ad1920ec10cf4b7733ebeae1424f003cc3fe9eb;hb=724b511d4fb363ebee828ba3992c831ba006444c;hp=c324e17db090fdd1f76750d537fb002f810b994c;hpb=98438bd0e893c23186fb82ea8b04964c0f1ef9d1;p=git.git diff --git a/Documentation/hooks.txt b/Documentation/hooks.txt index c324e17d..4ad1920e 100644 --- a/Documentation/hooks.txt +++ b/Documentation/hooks.txt @@ -1,4 +1,4 @@ -Hooks used by GIT +Hooks used by git ================= Hooks are little scripts you can place in `$GIT_DIR/hooks` @@ -111,6 +111,10 @@ Another use suggested on the mailing list is to use this hook to implement access control which is finer grained than the one based on filesystem group. +The standard output of this hook is sent to /dev/null; if you +want to report something to the git-send-pack on the other end, +you can redirect your output to your stderr. + post-update ----------- @@ -125,3 +129,7 @@ the outcome of `git-receive-pack`. The default post-update hook, when enabled, runs `git-update-server-info` to keep the information used by dumb transport up-to-date. + +The standard output of this hook is sent to /dev/null; if you +want to report something to the git-send-pack on the other end, +you can redirect your output to your stderr.