17 releases (breaking)

Uses new Rust 2024

0.16.1 Nov 6, 2025
0.14.0 Sep 2, 2025
0.13.0 Jul 23, 2025
0.6.0 Mar 2, 2025
0.3.1 Nov 13, 2024

#432 in Development tools

Download history 74/week @ 2025-08-16 74/week @ 2025-08-23 221/week @ 2025-08-30 129/week @ 2025-09-06 272/week @ 2025-09-13 108/week @ 2025-09-20 147/week @ 2025-09-27 94/week @ 2025-10-04 143/week @ 2025-10-11 98/week @ 2025-10-18 110/week @ 2025-10-25 99/week @ 2025-11-01 163/week @ 2025-11-08 88/week @ 2025-11-15 47/week @ 2025-11-22 17/week @ 2025-11-29

336 downloads per month

GPL-3.0-only

1MB
14K SLoC

Syntax aware merging of diverging files

Overview

Mergiraf is a structured merge tool. It takes three versions of a file (base, left and right) and produces a fourth version where the changes from base to left and from base to right are added. It does so with awareness of the syntax of the files, unlike Git's built-in line-based merge algorithm.

It is primarily designed to be used as a CLI which implements Git merge driver. This means that it can replace Git's default merge algorithm when merging or rebasing branches.

Using as a library to build other programs

Mergiraf is not designed to be used as a library so far, the Rust API is therefore not meant to be stable.


Mergiraf

A syntax-aware git merge driver for a growing collection of programming languages and file formats.

See the documentation.

We welcome contributions and new team members, see CONTRIBUTING.md.

License: GPLv3

Dependencies

~413MB
~12M SLoC