[libcode-tidyall-perl] 353/374: Clarifies docs on how to set up hooks

Jonas Smedegaard js at alioth.debian.org
Sun Sep 29 22:26:50 UTC 2013


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libcode-tidyall-perl.

commit f16486129f2283258bf9fd2996c068666f1724de
Author: Olaf Alders <olaf at wundersolutions.com>
Date:   Wed Jun 26 00:40:39 2013 -0300

    Clarifies docs on how to set up hooks
    
    It was a bit confusing that the content of the pre-commit script was referenced elsewhere in the docs.  Also, git/setup.sh was being called git/setup.pl
---
 lib/Code/TidyAll/Git/Precommit.pm |   16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/lib/Code/TidyAll/Git/Precommit.pm b/lib/Code/TidyAll/Git/Precommit.pm
index 6deff10..5c6bc9e 100644
--- a/lib/Code/TidyAll/Git/Precommit.pm
+++ b/lib/Code/TidyAll/Git/Precommit.pm
@@ -176,11 +176,21 @@ yourself or your developers as follows:
 
 =item *
 
-Create a directory called C<git> at the top of your repo (note no dot prefix)
+Create a directory called C<git/hooks> at the top of your repo (note no dot prefix).
+
+    mkdir -p git/hooks
 
 =item *
 
-Commit your pre-commit script in C<git/hooks/pre-commit>
+Commit your pre-commit script in C<git/hooks/pre-commit> containing:
+
+    #!/usr/bin/env perl
+
+    use strict;
+    use warnings;
+
+    use Code::TidyAll::Git::Precommit;
+    Code::TidyAll::Git::Precommit->check();
 
 =item *
 
@@ -193,7 +203,7 @@ Add a setup script in C<git/setup.sh> containing
 
 =item *
 
-Run C<git/setup.pl> (or tell your developers to run it) once for each new clone
+Run C<git/setup.sh> (or tell your developers to run it) once for each new clone
 of the repo
 
 =back

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcode-tidyall-perl.git



More information about the Pkg-perl-cvs-commits mailing list