41f9319cda
The pre-commit hook had code that was trying to detect and _fix_ trailing whitespaces. this code was broken. If you try to do a partial commit on a file and the part your are partially commiting contain offending lines, the process to try to fix them drop the rest of the changes. In general it is very dangerous to try to be cute in a pre-commit hook a pre-commit hook you tell you something is wrong, and preferably were it think that it is wrong... but should not attempt to 'fix' things silently. So I did not try to 'fix' that code. Instead I replaced it by a straight forward 'detection-only', lifted from the linux-kernel's git hook. |
||
---|---|---|
.. | ||
commit-msg | ||
post-merge | ||
pre-commit |