aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-03-28 00:42:17 -0700
committerJunio C Hamano <gitster@pobox.com>2009-03-28 00:42:17 -0700
commit869e13e2466bd047e6e624f69c01c8561b989b7c (patch)
treeaec008f479499ddc18cefa68c01ff553a557a8e6 /Documentation
parent3f7d99282d336824b789a5ccb2523a5d84f9be2e (diff)
parent24c11552cb3bd7ec343c8061c87b07aa7abbad00 (diff)
downloadgit-869e13e2466bd047e6e624f69c01c8561b989b7c.tar.gz
git-869e13e2466bd047e6e624f69c01c8561b989b7c.tar.xz
Merge branch 'jk/clone-post-checkout'
* jk/clone-post-checkout: githooks documentation: post-checkout hook is also called after clone
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/githooks.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt
index 1fd512bca..1c736738c 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.