From 4aee5b0dc7cf5b7fbaa7ff27c1c0cdb72631ea92 Mon Sep 17 00:00:00 2001 From: Andreas Marschke Date: Fri, 24 Apr 2015 11:36:48 -0700 Subject: [PATCH] add documentation to the top of the script --- lib/pre-commit | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/pre-commit b/lib/pre-commit index 092602c51..04953d9af 100755 --- a/lib/pre-commit +++ b/lib/pre-commit @@ -1,11 +1,13 @@ #!/bin/sh # -# An example hook script to verify what is about to be committed. -# Called by "git commit" with no arguments. The hook should -# exit with non-zero status after issuing an appropriate message if -# it wants to stop the commit. +# git pre-commit hook +# +# This script should be copied into your local clones .git/hooks/ +# directory and made executable (`chmod +x`). # -# To enable this hook, rename this file to "pre-commit". +# After that, the script will run before every call to git commit and +# check if grunt is installed and if `grunt lint` comes back successfully. + if git rev-parse --verify HEAD >/dev/null 2>&1 then