This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Place me in ".git/hooks", replacing the original file if one exists. | |
# Stashing all non-staged changes so the lint will only run on staged changes. | |
# Assuming the already-commited code is always linted before commiting, | |
# this code assures that the upcoming commits will also be linted. | |
git stash -k -u > /dev/null | |
# This code assumes here you have some `make` commands for checking/reporting/fixing the linting of the code. | |
# You can change these to the commands of your choice. |