4 ms·
> That means all source code reformatting actions which do not change the meaning of the source code also do not appear in the diff. The method I described doe
by davemp 5y ago
> That means all source code reformatting actions which do not change the meaning of the source code also do not appear in the diff.
The method I described does exactly that. Most modern formatting tools parse code into an AST then rewrite it based formatting rules. So as long as you format both files to the same rules before diffing, only AST changes will show up.