# Install mergiraf with Homebrew, apk, MacPorts, Nix, pacman, scoop, winget, zypper

Syntax-aware git merge driver. Version 0.17.0 via Homebrew; verified 2026-05-07.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mergiraf
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mergiraf
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: openSUSE Tumbleweed package metadata: mergiraf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:mergiraf
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mergiraf>
- **Version:** 0.17.0
- **Source summary:** Syntax-aware git merge driver
- **Homepage:** <https://mergiraf.org>
- **Repository:** <https://codeberg.org/mergiraf/mergiraf>
- **Upstream docs:** <https://mergiraf.org/>
- **License:** GPL-3.0-only
- **Source archive:** <https://codeberg.org/mergiraf/mergiraf/archive/v0.17.0.tar.gz>
- **Last updated:** 2026-05-07T20:04:47Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- mergiraf (cli)
- mergiraf (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.17.0
- Package-manager updated: 2026-05-07
- Local data: ok
- Upstream repository: https://mergiraf.org
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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`.

### How it is used

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.

### Sources

- <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>


## Security Notes

No matching local secret-handling manifest was found for mergiraf. Nucleus package metadata is still published here so future coverage has a stable package 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 Details

- **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

## Other Package-Manager Records

- 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.17.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.17.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: mergiraf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [git-imerge](https://www.automicvault.com/pkg/brew/git-imerge/) - Shares av.db curated category or tags: cli, developer-tools, git, merge-tools, version-control.
- [git-mediate](https://www.automicvault.com/pkg/brew/git-mediate/) - Shares av.db curated category or tags: cli, developer-tools, git, merge-tools, version-control.
- [git-octopus](https://www.automicvault.com/pkg/brew/git-octopus/) - Shares av.db curated category or tags: cli, developer-tools, git, merge-tools, version-control.
- [committed](https://www.automicvault.com/pkg/brew/committed/) - Shares av.db curated category or tags: cli, developer-tools, git, rust, version-control.
- [garden](https://www.automicvault.com/pkg/brew/garden/) - Shares av.db curated category or tags: cli, developer-tools, git, rust, version-control.
- [git-grab](https://www.automicvault.com/pkg/brew/git-grab/) - Shares av.db curated category or tags: cli, developer-tools, git, rust, version-control.
- [git-graph](https://www.automicvault.com/pkg/brew/git-graph/) - Shares av.db curated category or tags: cli, developer-tools, git, rust, version-control.
- [git-interactive-rebase-tool](https://www.automicvault.com/pkg/brew/git-interactive-rebase-tool/) - Shares av.db curated category or tags: cli, developer-tools, git, rust, version-control.
- [codeberg-cli](https://www.automicvault.com/pkg/brew/codeberg-cli/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.
- [forgejo-cli](https://www.automicvault.com/pkg/brew/forgejo-cli/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.
- [git-pages](https://www.automicvault.com/pkg/brew/git-pages/) - 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/automic-vault/db/blob/main/combined/mergiraf.yml)


## Sources

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