macOS
brew install difftasticlocal Homebrew formula metadata
sudo port install difftasticMacPorts ports tree · devel/difftastic/Portfile · 来源: api.github.com
安装
brew install difftasticlocal Homebrew formula metadata
sudo port install difftasticMacPorts ports tree · devel/difftastic/Portfile · 来源: api.github.com
sudo apk add difftasticAlpine Linux edge package indexes · difftastic · 来源: dl-cdn.alpinelinux.org
sudo dnf install difftasticFedora Rawhide package metadata · difftastic · 来源: dl.fedoraproject.org
nix profile install nixpkgs#difftasticnixpkgs package indexes · pkgs/by-name/di/difftastic/package.nix · 来源: api.github.com
sudo pacman -S difftasticArch Linux sync databases · difftastic · 来源: geo.mirror.pkgbuild.com
sudo zypper install difftasticopenSUSE Tumbleweed package metadata · difftastic · 来源: download.opensuse.org
scoop install main/difftasticScoop official bucket manifest trees · bucket/difftastic.json · 来源: api.github.com
winget install --id Wilfred.difftastic -eWindows Package Manager source index · Wilfred.difftastic · 来源: cdn.winget.microsoft.com
概览
Diff that understands syntax
历史
Difftastic is a structural diff tool that compares files using syntax rather than only lines, producing human-oriented output for code review and version-control workflows.
The project README defines Difftastic as a syntax-aware diff tool and explicitly contrasts it with line-oriented diffing. Its changelog shows rapid development from the 0.1 series in 2021 through regular parser, display, Git-integration, and performance improvements.
The official installation documentation covers multiple package-manager routes, and the README highlights compatibility with Git and other version-control systems. The manual provides specific Git aliases, `diff.external`, and `difftool` configuration, which made the tool easy to adopt incrementally.
Difftastic is commonly invoked as `difft` directly or wired into Git so `git diff`, `git show`, or `git log -p` can display syntax-aware differences. When files are unrecognized or parsing fails, the README documents fallback behavior to line-oriented diffing.
Difftastic is interesting to package nerds because it packages tree-sitter-backed structural comparison as a normal CLI. It lets maintainers review source changes in languages where reformatting, delimiters, and nested syntax can obscure the real change in a traditional unified diff.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
difft | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/Wilfred/difftastic
安装元数据
| 软件包键 | brew:difftastic |
|---|---|
| 版本 | 0.69.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/difftastic |
| 主页 | https://difftastic.wilfred.me.uk/ |
| 仓库 | https://github.com/Wilfred/difftastic |
| 上游文档 | https://difftastic.wilfred.me.uk/ |
| 许可证 | MIT |
| 源码归档 | https://github.com/Wilfred/difftastic/archive/refs/tags/0.69.0.tar.gz |
| 最后更新 | 2026-06-15T10:20:15-04:00 |
| Pulse | updated |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | difftastic |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
difftastic
nix profile install nixpkgs#difftasticdifftastic 0.68.0-r0
Diff tool that understands syntax
https://difftastic.wilfred.me.uk/
sudo apk add difftasticdifftastic-doc 0.68.0-r0
Diff tool that understands syntax (documentation)
https://difftastic.wilfred.me.uk/
sudo apk add difftastic-docdifftastic 0.67.0-3.fc45
Structural diff that understands syntax
https://crates.io/crates/difftastic
sudo dnf install difftasticdifftastic 0.69.0-1
An experimental diff tool that compares files based on their syntax
https://difftastic.wilfred.me.uk
sudo pacman -S difftasticdifftastic 0.69.0-1.1
A structural diff that understands syntax
https://difftastic.wilfred.me.uk/
sudo zypper install difftasticdifftastic-doc 0.69.0-1.1
Documentation for difftastic
https://difftastic.wilfred.me.uk/
sudo zypper install difftastic-docdifftastic
sudo port install difftasticmain/difftastic
scoop install main/difftasticWilfred.difftastic
winget install --id Wilfred.difftastic -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.