Skip to content

Commit d198367

Browse files
marcowsgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4fce51c commit d198367

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Documentation/gitrepository-layout.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ hooks::
134134
Hooks are customization scripts used by various git
135135
commands. A handful of sample hooks are installed when
136136
'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.
138139
Read linkgit:githooks[5] for more details about
139140
each hook.
140141

Documentation/glossary-content.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ to point at the new commit.
183183
and potentially aborted, and allow for a post-notification after the
184184
operation is done. The hook scripts are found in the
185185
`$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.
187188

188189
[[def_index]]index::
189190
A collection of files with stat information, whose contents are stored

0 commit comments

Comments
 (0)