Dffy is an open-source, Rust-based terminal viewer for reviewing Git changes, designed to remain responsive on very large repositories. It presents a file tree alongside split or unified diffs, choosing a layout based on terminal width, and can show staged, unstaged, and untracked changes together or compare revisions, commits, files, and directories. Its navigation includes fuzzy file selection, search, and shortcuts for moving between files and changed lines. Syntax highlighting covers 18 languages, while a syntax-aware mode can distinguish moved code and formatting-only changes. Watch mode refreshes as work changes, and the interface is designed to work in SSH sessions, including on phone-sized terminals.
Its central design claim is that reviewers should see useful changes without waiting for the entire diff to be computed. Dffy streams results, displaying early files while processing the rest in the background; in the project’s Linux kernel comparison, it reports showing the first changed line in 9.5 milliseconds for a 13,168-file, 48 MB patch, using 90 MB of memory. It can also serve as Git’s pager, interactive staging filter, and difftool, or print diffs when run in a pipe. The implementation includes its own diff engine and terminal renderer rather than relying on a TUI framework. Configuration, themes, and experimental renderer plugins support customization. The MIT-licensed project provides installation instructions, detailed documentation, architecture notes, and benchmark methodology.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.