summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dfa7a6c)
raw | patch | inline | side by side (parent: dfa7a6c)
author | Jens Lehmann <Jens.Lehmann@web.de> | |
Sun, 22 Mar 2009 18:46:38 +0000 (19:46 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 22 Mar 2009 19:29:47 +0000 (12:29 -0700) |
The documentation of the post-checkout hook just talks
about git-checkout. But recently git-clone was changed to
call it too, unless the -no-checkout (-n) option is used.
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
about git-checkout. But recently git-clone was changed to
call it too, unless the -no-checkout (-n) option is used.
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/githooks.txt | patch | blob | history |
index 1fd512bca2e12f5eb0abac0edb0dfb2a86949cec..1c736738ccc91b6929226a27e02716221ec3ef05 100644 (file)
flag=1) or a file checkout (retrieving a file from the index, flag=0).
This hook cannot affect the outcome of 'git-checkout'.
+It is also run after 'git-clone', unless the --no-checkout (-n) option is
+used. The first parameter given to the hook is the null-ref, the second the
+ref of the new HEAD and the flag is always 1.
+
This hook can be used to perform repository validity checks, auto-display
differences from the previous HEAD if different, or set working dir metadata
properties.