summaryrefslogtreecommitdiffstats
path: root/githooks.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2009-03-28 08:55:34 +0000
committerJunio C Hamano <junio@hera.kernel.org>2009-03-28 08:55:34 +0000
commit36a567279a3e94474750eacd210f308ef21d446e (patch)
treeb26a9c8bab6824ff98c99dca17eafb3cc022ad28 /githooks.txt
parent1de7572eb1aa483cc2aaca1db274928ffc6830f0 (diff)
downloadgit-htmldocs-36a567279a3e94474750eacd210f308ef21d446e.tar.gz
Autogenerated HTML docs for v1.6.2.1-404-gb008
Diffstat (limited to 'githooks.txt')
-rw-r--r--githooks.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/githooks.txt b/githooks.txt
index 1fd512bca..1c736738c 100644
--- a/githooks.txt
+++ b/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.