diff options
author | Jens Lehmann <Jens.Lehmann@web.de> | 2009-03-22 19:46:38 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-22 12:29:47 -0700 |
commit | 24c11552cb3bd7ec343c8061c87b07aa7abbad00 (patch) | |
tree | 55a81f1f3b6e33922e8595702869f5a18c80dc85 /Documentation/githooks.txt | |
parent | dfa7a6c579d75037b9dd5c3654a36d31c60f203c (diff) | |
download | git-24c11552cb3bd7ec343c8061c87b07aa7abbad00.tar.gz |
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>
Diffstat (limited to 'Documentation/githooks.txt')
-rw-r--r-- | Documentation/githooks.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt index 1fd512bca2..1c736738cc 100644 --- a/Documentation/githooks.txt +++ b/Documentation/githooks.txt @@ -151,6 +151,10 @@ indicating whether the checkout was a branch checkout (changing branches, 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. |