| Stefan Tauner | 7634708 | 2016-11-27 17:45:49 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # | ||||
| 3 | # A hook script to verify what is about to be committed. | ||||
| 4 | # Called by "git commit" with no arguments. The hook should | ||||
| 5 | # exit with non-zero status after issuing an appropriate message if | ||||
| 6 | # it wants to stop the commit. | ||||
| 7 | |||||
| 8 | # Check for whitespace errors | ||||
| 9 | git diff-index --check --cached HEAD -- || exit 1 | ||||