macOS
brew install ydifflocal Homebrew formula metadata
sudo port install ydiffMacPorts ports tree · textproc/ydiff/Portfile · 来源: api.github.com
安装
brew install ydifflocal Homebrew formula metadata
sudo port install ydiffMacPorts ports tree · textproc/ydiff/Portfile · 来源: api.github.com
sudo apt install python3-cdiffDebian stable package indexes · python3-cdiff · 来源: deb.debian.org
sudo dnf install python3-ydiffFedora Rawhide package metadata · python3-ydiff · 来源: dl.fedoraproject.org
nix profile install nixpkgs#ydiffnixpkgs package indexes · ydiff · 来源: raw.githubusercontent.com
概览
View colored diff with side by side and auto pager support
历史
Ydiff is a terminal diff viewer for colored, incremental diffs from version-control workspaces or stdin. It is best known for side-by-side display, automatic pager use, and a single-file Python implementation with no external Python dependencies.
The GitHub repository was created on 2013-01-29, and the changelog begins with early PyPI-era releases in February 2013 under the original `cdiff` name. Within weeks it gained support for patch files, pipes, revision-control output, two-file comparison, color control, logs, and more robust diff parsing.
During 2013 and 2014, the project moved from a small colored-diff helper into a workspace-oriented reviewer: it added Git/SVN/Hg log handling, automatic terminal-width behavior, pager tuning, Python 3.4 support, and fixes for difficult unified diffs.
The 2018 1.1 release renamed the command from `cdiff` to `ydiff` to avoid a binary-name conflict on major distributions. Later releases added Perforce and Windows support, wide-character handling, word-level change blocks, default side-by-side behavior, and customizable themes.
Ydiff adopted well for a small terminal tool because it solved a common packaging pain point: colorful side-by-side diffs without a GUI and without a heavy dependency stack. Its README documents installation from source, PyPI, Homebrew, Fedora, and FreeBSD.
Distribution adoption is visible in Homebrew, Fedora, FreeBSD/OpenBSD, Debian-derived package naming, and Nix-style package indexes. The rename from cdiff to ydiff is especially package-nerd relevant because it was driven by command-name collision management across distributions.
Users run `ydiff` inside Git, Mercurial, Perforce, or Subversion workspaces to view current changes, staged Git changes via passed-through options such as `--cached`, or revision logs via `-l`. It can also consume `git show`, `git log -p`, `svn diff`, `diff -u`, directory diffs, and GitHub pull-request `.diff` URLs from stdin.
The practical attraction is that ydiff wraps ordinary unified diffs with readable terminal presentation: side-by-side or unified layout, automatic width detection, line wrapping controls, pager selection, themes, color modes, and safe redirection back to patch files.
Ydiff is a neat package-manager case study because almost all of its value ships as one Python command. Packaging it is mostly about naming, executable placement, and keeping terminal behavior consistent across Unix-like systems.
The cdiff-to-ydiff rename captures a real packaging concern: a project can be technically simple and still need an upstream identity change once distribution command namespaces collide.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
ydiff | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/ymattw/ydiff
安装元数据
| 软件包键 | brew:ydiff |
|---|---|
| 版本 | 1.5 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/ydiff |
| 主页 | https://github.com/ymattw/ydiff |
| 仓库 | https://github.com/ymattw/ydiff |
| 上游文档 | https://github.com/ymattw/ydiff#readme |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://files.pythonhosted.org/packages/25/08/93b7e744645d94ae2f5dcddbbd2cfd5ec1420768994987a21a10b226be86/ydiff-1.5.tar.gz |
| 依赖 | python@3.14 |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ydiff |
| 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 软件包链接分开显示。
python3-cdiff 1.4.2-1
Colored, incremental diff (transitional package)
sudo apt install python3-cdiffpython3-ydiff 1.4.2-1
Colored, incremental diff with side by side and auto pager support (Python 3)
sudo apt install python3-ydiffydiff
nix profile install nixpkgs#ydiffpython3-ydiff 1.5-8.fc45
View colored, incremental diff
https://github.com/ymattw/ydiff
sudo dnf install python3-ydiffydiff 1.5-8.fc45
View colored, incremental diff
https://github.com/ymattw/ydiff
sudo dnf install ydiffydiff
sudo port install ydiff来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.