Skip to content

Commit

Permalink
add documentation to the top of the script
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-marschke committed Apr 24, 2015
1 parent 3da1532 commit 4aee5b0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/pre-commit
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4aee5b0

Please sign in to comment.