CONTRIBUTING: note on GNU xargs
This commit is contained in:
parent
526e7f5c55
commit
ea96bc52e4
1 changed files with 3 additions and 0 deletions
|
@ -291,6 +291,9 @@ before creating a commit:
|
|||
git diff --diff-filter=MA --cached --name-only | grep '\.hs$' | \
|
||||
xargs hlint --hint .hlint.yaml
|
||||
|
||||
(If you are using GNU `xargs`, add the `-r` option immediately
|
||||
after `xargs`.)
|
||||
|
||||
Saving this to `.git/hooks/pre-commit`, and making the script
|
||||
executable, will prevent accidental introduction of potentially
|
||||
problematic code.
|
||||
|
|
Loading…
Add table
Reference in a new issue