News for hackers. Stuff that matters.
Re:The hardest program I've ever written (2015) by davemp on Sunday March 06, 2022 @12:33AM (#30575287)
> 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.

There are no comments on this comment yet.