← All repos

difftastic

a structural diff that understands syntax 🟥🟩

difftree-sitter
Browse cluster: Static Analysis & Code Quality
15,892commits
531contributors
7languages

Tech stack & purpose

Difftastic is a structural diff tool built in Rust that compares files based on their syntax rather than line-by-line differences. It uses tree-sitter parsers to understand the abstract syntax trees of over 30 programming languages, enabling it to accurately identify and highlight syntactic changes while intelligently handling whitespace and code reformatting. The project was created by Wilfred and integrates with version control systems like git and mercurial, though it has known limitations around performance on files with large numbers of changes and robustness issues that are addressed through regular releases.

Community & reference links

Languages

Rust
80.8%
CSS
7.7%
HTML
6.5%
JavaScript
4.0%
Roff
0.7%
Just
0.3%
Shell
0.0%

Contributors (top 30 of 531)