mirror of https://github.com/snachodog/mybuddy.git
Add reference for pre-commit hooks in documentation.
This commit is contained in:
parent
73cf8e81d0
commit
7bc9fae311
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue