0.57.0

Wilfred/difftastic0.57.0Apr 2, 2024by github-actions[bot]

AI Summary

Improves binary detection and fixes issues with hidden files and line highlighting in directory diffs.

Key Highlights

  • Text file detection is now stricter, considering null bytes as binary hints.
  • Fixed hidden files being ignored when diffing directories.
  • Fixed line highlighting in large changed regions.

Full Release Notes

Difftastic is a structural diff tool that understands syntax. See [the manual](https://difftastic.wilfred.me.uk/) to get started, and [the changelog](https://github.com/Wilfred/difftastic/blob/master/CHANGELOG.md) for historical changes.

### Parsing

Text file detection is now stricter, considering null bytes as a hint that files are binaries.

### Diffing

Fixed an issue where hidden files (filename starting with `.`) were ignored when diffing directories.

Scheme now uses the same slider heuristics as other lisps, preferring the outer delimiter.

Fixed an issue with line-based diffing where only the first line in a large changed region was highlighted. This was particularly noticeable when diffing brand new files.

### Display

Fixed an issue when reporting changes in binary files, where trailing whitespace was inconsistent with other changes shown.