Add reference for pre-commit hooks in documentation.

This commit is contained in:
Christopher Charbonneau Wells 2018-10-13 18:37:24 -07:00
parent 73cf8e81d0
commit 7bc9fae311
1 changed files with 4 additions and 4 deletions

View File

@ -693,12 +693,12 @@ used for individual test execution.
### Pre-commit Hook ### Pre-commit Hook
A pre-commit hook is recommended for all commits in order to make sure that A [pre-commit hook](https://git-scm.com/docs/githooks#_pre_commit) is
static assets are correctly committed. Here is an example working script for recommended for all commits in order to make sure that static assets are
bash: correctly committed. Here is an example working script for bash:
``` ```
#!/bin/sh #!/bin/bash
if [ $(git diff --cached --name-only | grep static_src -c) -ne 0 ] if [ $(git diff --cached --name-only | grep static_src -c) -ne 0 ]
then then