125de239f2
We call 'git add' for files where we fixed whitespaces in. This is a problem in case the user staged only part of a file - as a result we do not just fix up whitespace in the patch but also stage other hunks of the file. Fix the problem by removing/restoring not staged changes before/after whitespace fixing. The operation is cheap enough, as it's a noop in case there are no unstaged changes. |
||
---|---|---|
.. | ||
commit-msg | ||
post-merge | ||
pre-commit |