Documentation: fix description for enabling hooks
Since f98f8cb (Ship sample hooks with .sample suffix, 2008-06-24) hooks are not enabled by making them executable anymore, but by removing the '.sample' suffix from the filename. Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Markus Heidelberg committed
Dec 17, 2008 at 03:59 UTC
d1983677f75469d177b0b948f0b66ad3471a26a2
2 files changed
+4
-2
Documentation/gitrepository-layout.txt
+2
-1
@@ -134,7 +134,8 @@ hooks::
134
Hooks are customization scripts used by various git
135
commands. A handful of sample hooks are installed when
136
'git-init' is run, but all of them are disabled by
137
- default. To enable, they need to be made executable.
137
+ default. To enable, the `.sample` suffix has to be
138
+ removed from the filename by renaming.
139
Read linkgit:githooks[5] for more details about
140
each hook.
141
Documentation/glossary-content.txt
+2
-1
@@ -183,7 +183,8 @@ to point at the new commit.
183
and potentially aborted, and allow for a post-notification after the
184
operation is done. The hook scripts are found in the
185
`$GIT_DIR/hooks/` directory, and are enabled by simply
186
- making them executable.
186
+ removing the `.sample` suffix from the filename. In earlier versions
187
+ of git you had to make them executable.
188
189
[[def_index]]index::
190
A collection of files with stat information, whose contents are stored