An attempt at creating the definitive Git pre-commit hook