开发者 Amalucelli 发布了名为 Dffy 的开源 Git 差异查看器,该工具使用 Rust 编写并专注于终端原生体验 1。其设计初衷是解决现有竞品无法满足的需求,作者认为 lumen(AI中心化)、hunk(TypeScript/JS runtime)和 diffs.com(浏览器端)不符合预期,因此开发了这一单一二进制文件形式的解决方案 1。Dffy 采用 MIT 许可证 1。
在性能表现上,Dffy 针对大型代码库进行了优化,能够在 9.5ms 内打开 Linux v6.0..v6.1 的差异,该差异涉及 13,168 个文件和 48MB 补丁 1。当作为 Git 分页器流式处理同样的 48MB 补丁时,其内存占用仅约为 3.0MB 1。功能方面,Dffy 支持分屏或统一视图、18种语言的语法高亮、重命名检测以及监视模式 (--watch) 1。用户可通过 brew install --cask amalucelli/tap/dffy 或通过 curl 脚本安装该工具 1。
Developer Amalucelli has released Dffy, an open-source Git diff viewer written in the Rust programming language and distributed under the MIT license 1. The tool is designed to provide a fast, terminal-native experience for reviewing code changes, particularly targeting large-scale repositories that demand high performance 1. By focusing on efficiency and simplicity, Dffy aims to handle complex diffs with minimal resource overhead while offering a streamlined interface directly within the command line 1.
Dffy distinguishes itself through its ability to process massive updates rapidly; for instance, it can load the diff between Linux kernel versions v6.0 and v6.1—which spans 13,168 files and a 48MB patch—in just 9.5 milliseconds 1. When used as a Git pager, the application employs streaming rendering to keep memory usage low, consuming only approximately 3.0MB while processing the same 48MB patch 1. Key features include support for split or unified views, syntax highlighting for 18 languages, rename detection, and a watch mode activated via the --watch flag 1. Users can install Dffy using Homebrew with the command brew install --cask amalucelli/tap/dffy or through a curl script 1.
The developer created Dffy after evaluating existing alternatives such as Lumen, Hunk, and diffs.com, finding them unsuitable due to their reliance on AI centralization, TypeScript/JavaScript runtimes, or browser-based environments respectively 1. Consequently, Dffy was developed as a single-binary tool that integrates directly into Git workflows without requiring heavy runtime dependencies 1. This approach ensures that developers working with extensive codebases can view diffs quickly and efficiently within their native terminal environment 1.
评论
还没有评论,欢迎留下第一条。