@matheusbsbs / matheus-bagliano / commits / 24c11552cb
Fork 0

githooks documentation: post-checkout hook is also called after clone

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>

Jens Lehmann committed Mar 22, 2009 at 19:46 UTC 24c11552cb3bd7ec343c8061c87b07aa7abbad00
1 file changed +4
Documentation/githooks.txt
+4
@@ -151,6 +151,10 @@ indicating whether the checkout was a branch checkout (changing branches,
151 flag=1) or a file checkout (retrieving a file from the index, flag=0).
152 This hook cannot affect the outcome of 'git-checkout'.
153
154 +It is also run after 'git-clone', unless the --no-checkout (-n) option is
155 +used. The first parameter given to the hook is the null-ref, the second the
156 +ref of the new HEAD and the flag is always 1.
157 +
158 This hook can be used to perform repository validity checks, auto-display
159 differences from the previous HEAD if different, or set working dir metadata
160 properties.