mergiraf

rust
gpl-3.0

A syntax-aware Git merge conflict resolver.

465
Stars
v0.20.0
Latest release
1 day ago
Last activity
Very Active
Status

mergiraf is a CLI tool that aims to resolve merge conflicts by understanding file structure and syntax. It parses the syntax tree of code or structured files (such as JSON, YAML, etc.) and attempts to intelligently combine changes from both sides.

 

This tool supports syntax-aware merging rules for many languages and has a cautious approach that avoids hiding unresolved conflicts. It operates as a drop-in driver for git merge, git rebase, cherry-pick, etc., but can also be run manually after a conflict. It can often auto-resolve conflicts, when it can’t safely auto-merge, mergiraf leaves clear conflict markers and encourages manual review. It also works well with difftastic.

 

This tool is aimed at software engineers and those working on complex codebases who get frequent merge conflicts. It benefits anyone who needs more intelligent conflict resolution than Git's default one.

Related tools

Get Updates On Terminal Trove.

No spam, just updates on Terminal Trove. See an example update.