pre-commit hook to disallow commit with SCSS file but without CSS file

This commit is contained in:
Pierre Goiffon
2021-09-09 09:28:37 +02:00
parent e4c818cacb
commit 91c7ed9f4d
3 changed files with 88 additions and 0 deletions

13
.make/git-hooks/README.md Normal file
View File

@@ -0,0 +1,13 @@
# Git hooks for iTop
## ❓ Goal
Those [git hooks](https://git-scm.com/docs/githooks) aims to ease developing on [iTop](https://github.com/Combodo/iTop).
## ☑ Available hooks
* pre-commit : rejects commit if you have at least one SCSS file staged, and no CSS file
## ⚙ Install
Just run install.php !