Auto-resolve non-conflicting changes in merge conflicts #51541
giovannipapini-agilelab
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
When resolving merge conflicts, provide an "auto-resolve" / "magic merge" button that automatically accepts all non-conflicting changes from both sides, leaving only true conflicts for manual resolution.
Description
IntelliJ IDEA has a "Magic Merge" button in its merge tool that automatically resolves all non-conflicting hunks in a 3-way merge. This is extremely useful when most of a file's changes don't actually conflict — you click one button, and only the real conflicts remain.
Currently, Zed's conflict resolution requires manually accepting each hunk (ours/theirs) even when many of them are unambiguous. An auto-resolve feature would:
This is a standard feature in tools like IntelliJ IDEA ("Magic Merge"), kdiff3 ("Auto-Merge"), and VS Code ("Accept All Non-Conflicting").
Use case
Large merges or rebases where most changes don't conflict — manually resolving dozens of unambiguous hunks is tedious and error-prone when a tool could do it instantly.
Beta Was this translation helpful? Give feedback.
All reactions