Search code examples
diff

diff: How to use another diff algorithm


Not git diff, just plain diff or an equivalent tool: How to diff files using another diff algorithm, like histogram? I'm tired of seeing unrelated curly braces being matched up.

I tried diff --minimal, but it wasn't noticeably better for the differences I'm looking at.

This turns up nothing:

diff --help | grep -i histogram
man 1 diff | grep -i histogram

Is there a better diff tool or method for diffing files?


Solution

  • This tool does a curly braces aware diff. It takes some time to run but the result is accurate : I-Compare