# 使用 Homebrew, apk, MacPorts, Nix, pacman, zypper, scoop, winget 安装 mergiraf

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

## 安装

```sh
sudo av install brew:mergiraf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mergiraf
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mergiraf
```

  证据: MacPorts ports tree: devel/mergiraf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add mergiraf
```

  证据: Alpine Linux edge package indexes: mergiraf from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#mergiraf
```

  证据: nixpkgs package indexes: pkgs/by-name/me/mergiraf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S mergiraf
```

  证据: Arch Linux sync databases: mergiraf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install mergiraf
```

  证据: openSUSE Tumbleweed package metadata: mergiraf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/mergiraf
```

  证据: Scoop official bucket manifest trees: bucket/mergiraf.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Mergiraf.Mergiraf -e
```

  证据: Windows Package Manager source index: Mergiraf.Mergiraf from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:mergiraf
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mergiraf>
- **版本:** 0.18.0
- **来源摘要:** Syntax-aware git merge driver
- **主页:** <https://mergiraf.org>
- **上游文档:** <https://mergiraf.org>
- **许可证:** GPL-3.0-only
- **源码归档:** <https://codeberg.org/mergiraf/mergiraf/archive/v0.18.0.tar.gz>
- **最后更新:** 2026-07-14T18:47:06Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mergiraf (cli)
- mergiraf (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.18.0
- 管理器更新时间: 2026-07-14
- 本地数据: OK
- 上游仓库: https://mergiraf.org
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Mergiraf is a syntax-aware merge driver for Git created by Antonin Delpeuch after exploring the limitations of line-based merge conflict resolution and earlier structured-merge prototypes. The project positions itself as a practical merge driver for daily version-control workflows: Git still performs ordinary line-based merges where they succeed, while Mergiraf uses syntax trees and language-specific knowledge when a line-based conflict can be resolved structurally.

### 项目历史

The tool integrates through Git's custom merge-driver mechanism and can also be run after a conflict with `mergiraf solve`. Its documentation emphasizes conservative behavior: unresolved or suspicious cases keep conflict markers, while automatically solved cases can be reviewed with `mergiraf review` and reported with `mergiraf report`. It also supports Jujutsu workflows through `jj resolve --tool mergiraf`.

### 使用方式

Mergiraf's ecosystem role is adjacent to tools like Difftastic: it applies tree awareness to version-control conflicts rather than only to human-readable diffs. Its supported-language list spans common programming languages such as C/C++, Go, Java, JavaScript, Python, Rust, TypeScript, and structured formats such as JSON, TOML, YAML, XML, `go.mod`, and requirements files. Package managers distribute it as a developer-tool CLI that teams can opt into globally or per repository through Git attributes.

### 来源

- <https://antonin.delpeuch.eu/posts/mergiraf-a-syntax-aware-merge-driver-for-git/>
- <https://formulae.brew.sh/formula/mergiraf>
- <https://mergiraf.org/>
- <https://mergiraf.org/installation.html>
- <https://mergiraf.org/languages.html>
- <https://mergiraf.org/usage.html>


## 安全说明

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



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/git/config
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mergiraf
- **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

## 其他软件包管理器记录

- Nix - mergiraf: normalized package name match | nixpkgs package indexes: pkgs/by-name/me/mergiraf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - mergiraf - 0.17.0-r0: normalized package name match | Alpine Linux edge package indexes: mergiraf from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | syntax-aware git merge driver for a growing collection of programming languages and file formats | https://mergiraf.org/
- apk - mergiraf-doc - 0.17.0-r0: normalized package name match | Alpine Linux edge package indexes: mergiraf-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | syntax-aware git merge driver for a growing collection of programming languages and file formats (documentation) | https://mergiraf.org/
- pacman - mergiraf - 0.18.0-1: normalized package name match | Arch Linux sync databases: mergiraf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A syntax-aware git merge driver for a growing collection of programming languages and file formats | https://mergiraf.org/
- zypper - mergiraf - 0.18.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: mergiraf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A syntax-aware git merge driver | https://mergiraf.org/
- MacPorts - mergiraf: normalized package name match | MacPorts ports tree: devel/mergiraf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/mergiraf: normalized package name match | Scoop official bucket manifest trees: bucket/mergiraf.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Mergiraf.Mergiraf: normalized package name match | Windows Package Manager source index: Mergiraf.Mergiraf from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [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.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [koji](https://pkg.so/zh-hans/brew/koji/) - Shares pkgdb curated category or tags: cli, developer-tools, git, rust, version-control.
- [committed](https://pkg.so/zh-hans/brew/committed/) - Shares pkgdb curated category or tags: cli, developer-tools, git, rust, version-control.
- [libgit2](https://pkg.so/zh-hans/brew/libgit2/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [lazygit](https://pkg.so/zh-hans/brew/lazygit/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [lefthook](https://pkg.so/zh-hans/brew/lefthook/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [commitizen](https://pkg.so/zh-hans/brew/commitizen/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [diff-so-fancy](https://pkg.so/zh-hans/brew/diff-so-fancy/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [repo](https://pkg.so/zh-hans/brew/repo/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [conventional-github-releaser](https://pkg.so/zh-hans/npm/conventional-github-releaser/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
