git ignore whitespace

C++
git diff --ignore-space-change
Source

Also in C++: