I'd like to commit all my whitespace corrections in their own commit, to keep everything else pure from whitespace changes.
It's easy to filter out whitespace differences with git diff
using something like this
git diff --ignore-all-space --ignore-space-change --ignore-space-at-eol --ignore-blank-lines
but how do I get a listing of only whitespace differences?
(It would also be useful to get a list of files that only have whitespace differences, so I can just add
them all without going through them with git add -p
to pick out the whitespace differences. But I suppose that's secondary.)