]> Pileus Git - ~andy/git/commitdiff
Documentation: fix description for enabling hooks
authorMarkus Heidelberg <markus.heidelberg@web.de>
Wed, 17 Dec 2008 02:59:23 +0000 (03:59 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Dec 2008 08:57:33 +0000 (00:57 -0800)
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>
Documentation/gitrepository-layout.txt
Documentation/glossary-content.txt

index a969b3fbc3efc99ce490455b93c8bfb912994e2e..1befca98d49583b42e652b4ce21fccb89b5b5cdb 100644 (file)
@@ -134,7 +134,8 @@ hooks::
        Hooks are customization scripts used by various git
        commands.  A handful of sample hooks are installed when
        'git-init' is run, but all of them are disabled by
-       default.  To enable, they need to be made executable.
+       default.  To enable, the `.sample` suffix has to be
+       removed from the filename by renaming.
        Read linkgit:githooks[5] for more details about
        each hook.
 
index 9b4a4f45e900a96c4ddeb214816877f39cca15a5..9afca755ed309b5bdf3cd293d6120f676f1053cd 100644 (file)
@@ -183,7 +183,8 @@ to point at the new commit.
        and potentially aborted, and allow for a post-notification after the
        operation is done. The hook scripts are found in the
        `$GIT_DIR/hooks/` directory, and are enabled by simply
-       making them executable.
+       removing the `.sample` suffix from the filename. In earlier versions
+       of git you had to make them executable.
 
 [[def_index]]index::
        A collection of files with stat information, whose contents are stored