
First try at fixing it: a tiny script to fix the file before committing.
Oops, that introduced a huge number of changes and would mess up history quite a bit, not the way to go.
So I added this to my ~/.gitconfig:
[core]
whitespace = -trailing-space
and now I can see the important changes in the diffs again.
You can also enable the sample pre-commit hook that will help fix the whitespace 'errors' before the commit as well.
ReplyDelete