summaryrefslogtreecommitdiff
path: root/Documentation/git-init.txt
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-05-17 14:38:17 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-05-17 14:38:17 -0700
commit6675f501f6b987dbdb0dbeb1d2efeb5a27fc41a7 (patch)
tree68e85638e5f5de0d30d1c9881e7f0b5826fe2bca /Documentation/git-init.txt
parentMerge branch 'sb/submodule-init' (diff)
parenthooks: allow customizing where the hook directory is (diff)
downloadtgif-6675f501f6b987dbdb0dbeb1d2efeb5a27fc41a7.tar.xz
Merge branch 'ab/hooks'
A new configuration variable core.hooksPath allows customizing where the hook directory is. * ab/hooks: hooks: allow customizing where the hook directory is githooks.txt: minor improvements to the grammar & phrasing githooks.txt: amend dangerous advice about 'update' hook ACL githooks.txt: improve the intro section
Diffstat (limited to 'Documentation/git-init.txt')
-rw-r--r--Documentation/git-init.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/git-init.txt b/Documentation/git-init.txt
index 8174d27efd..6364e5dc45 100644
--- a/Documentation/git-init.txt
+++ b/Documentation/git-init.txt
@@ -130,7 +130,12 @@ The template directory will be one of the following (in order):
- the default template directory: `/usr/share/git-core/templates`.
The default template directory includes some directory structure, suggested
-"exclude patterns" (see linkgit:gitignore[5]), and sample hook files (see linkgit:githooks[5]).
+"exclude patterns" (see linkgit:gitignore[5]), and sample hook files.
+
+The sample hooks are all disabled by default, To enable one of the
+sample hooks rename it by removing its `.sample` suffix.
+
+See linkgit:githooks[5] for more general info on hook execution.
EXAMPLES
--------