I’ve reformatted some Java files in an Android project and now GIT marks entire functions as modified. Since there are no changes outside the whitespace (just tabs, line breaks), is there a way to tell GIT to ignore that or to process it per line instead of the full function? I’ve looked at the settings, searched on the web, and read a bit in the documentation but I’m stuck.
Share
git diff -w
The -w ignores whitespace when comparing lines.