# 使用 Homebrew 安装 difi

查看 difi 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:difi
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install difi
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:difi
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/difi>
- **版本:** 0.2.31
- **来源摘要:** Pixel-perfect terminal diff viewer
- **主页:** <https://github.com/xguot/difi>
- **仓库:** <https://github.com/xguot/difi>
- **许可证:** MIT
- **源码归档:** <https://github.com/xguot/difi/archive/refs/tags/v0.2.31.tar.gz>
- **最后更新:** 2026-07-28T14:10:39+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- difi (cli)
- difi (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.2.31
- 管理器更新时间: 2026-07-28
- 本地数据: OK
- 上游仓库: https://github.com/xguot/difi
- 检测到的最新版本: v0.2.31 (当前)
## 项目历史与用法

difi is a Go terminal user interface for reviewing and refining Git diffs before pushing changes. Its official README frames it as a focused diff-review tool that can run inside a Git repository or consume raw patch data through standard input.

### 项目历史

The public GitHub repository was created in January 2026 and quickly centered on a single CLI workflow: inspect a branch, commit, or patch, navigate the file tree and diff view, and open files in an editor from the terminal. The project is distributed through Homebrew, Go install, AUR packages, and GitHub release binaries.

### 采用历史

Official project metadata shows early adoption inside the Git-and-terminal-tool niche rather than a long historical footprint. Its package-manager relevance comes from offering Homebrew installation for macOS and Linux alongside Go and Arch paths, making it easy to try without a custom build.

### 使用方式

Typical use is to run `difi` in a Git repository, pass a target such as `main` or `HEAD~1`, or pipe a generated diff into the command. The README also documents Jujutsu and vim-fugitive-oriented workflows, which positions it among developer tools that sit between raw `git diff` and full code-review platforms.

### 为什么软件包爱好者会关心

For package-history purposes, difi is notable as a modern Bubble Tea style terminal UI packaged early for Homebrew. It is a small example of the current wave of single-purpose Go CLIs that treat terminal interactivity, editor integration, and package-manager distribution as first-class ergonomics.

### 时间线

- 2026: Public GitHub repository created.
- 2026: GitHub releases provide prebuilt binaries for Linux, macOS, and Windows.
- 2026: README documents Homebrew, Go install, AUR, and manual installation paths.

### Related projects

- The README documents integrations with vim-fugitive and difi.nvim, and notes that raw diffs from other version-control tools such as Jujutsu can be piped into difi.

### 来源

- <https://api.github.com/repos/xguot/difi>
- <https://github.com/xguot/difi#readme>
- <https://api.github.com/repos/xguot/difi/releases?per_page=5>


## 安全说明

没有找到 difi 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** difi
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [diffr](https://pkg.so/zh-hans/brew/diffr/) - Shares pkgdb curated category or tags: cli, code-review, developer-tools, diff, git.
- [difftastic](https://pkg.so/zh-hans/brew/difftastic/) - Shares pkgdb curated category or tags: cli, developer-tools, diff, git.
- [diff-so-fancy](https://pkg.so/zh-hans/brew/diff-so-fancy/) - Shares pkgdb curated category or tags: cli, developer-tools, diff, git.
- [diffnav](https://pkg.so/zh-hans/brew/diffnav/) - Shares pkgdb curated category or tags: cli, developer-tools, diff, git.
- [diffstat](https://pkg.so/zh-hans/brew/diffstat/) - Shares pkgdb curated category or tags: cli, code-review, developer-tools, diff.
- [diffutils](https://pkg.so/zh-hans/brew/diffutils/) - Shares pkgdb curated category or tags: cli, developer-tools, diff.
- [colordiff](https://pkg.so/zh-hans/brew/colordiff/) - Shares pkgdb curated category or tags: cli, developer-tools, diff.
- [diffoscope](https://pkg.so/zh-hans/brew/diffoscope/) - Shares pkgdb curated category or tags: cli, developer-tools, diff.

## Combined YAML source

View the package source record on GitHub. [combined/difi.yml](https://github.com/mxcl/pkgdb/blob/main/combined/difi.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
