macOS
brew install ydifflocal Homebrew formula metadata
sudo port install ydiffMacPorts ports tree · textproc/ydiff/Portfile · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de ydiff pour les workflows d'agents IA.
installation
brew install ydifflocal Homebrew formula metadata
sudo port install ydiffMacPorts ports tree · textproc/ydiff/Portfile · Source: api.github.com
sudo apt install python3-cdiffDebian stable package indexes · python3-cdiff · Source: deb.debian.org
sudo dnf install python3-ydiffFedora Rawhide package metadata · python3-ydiff · Source: dl.fedoraproject.org
nix profile install nixpkgs#ydiffnixpkgs package indexes · ydiff · Source: raw.githubusercontent.com
aperçu
View colored diff with side by side and auto pager support
historique
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.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
ydiff | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/ymattw/ydiff
métadonnées d'installation
| Clé du paquet | brew:ydiff |
|---|---|
| Version | 1.5 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/ydiff |
| Page d'accueil | https://github.com/ymattw/ydiff |
| Dépôt | https://github.com/ymattw/ydiff |
| Docs amont | https://github.com/ymattw/ydiff#readme |
| Licence | BSD-3-Clause |
| Archive source | https://files.pythonhosted.org/packages/25/08/93b7e744645d94ae2f5dcddbbd2cfd5ec1420768994987a21a10b226be86/ydiff-1.5.tar.gz |
| Dépendances | python@3.14 |
| Bouteille | disponible (sur all) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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 ydiffpiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.