fix(TreeBuilder): resolve not-really-conflicts (left and right agree), take 2 #204

Merged
ada4a merged 4 commits from ada4a/mergiraf:170-not_really_a_conflict-v2 into main 2025-02-15 11:24:58 +01:00
Owner

supersedes #188

fixes #170

supersedes #188 fixes #170
similar to the "1 successor" branch
@ -258,0 +239,4 @@
return line_based;
};
let MergedTree::Conflict {
Author
Owner

Since we're destructuring conflict here anyway, we could just pass the sides to resolve_commutative_conflict directly. And since destructing conflict is all the latter does besides calling commutatively_merge_list, I think we could just remove resolve_commutative_conflict and call commutatively_merge_list directly

Since we're destructuring `conflict` here anyway, we could just pass the sides to `resolve_commutative_conflict` directly. And since destructing `conflict` is all the latter does besides calling `commutatively_merge_list`, I think we could just remove `resolve_commutative_conflict` and call `commutatively_merge_list` directly
Owner

It sounds good to me, intuitively

It sounds good to me, intuitively
Author
Owner

Great, I'll open a PR for that then

Great, I'll open a PR for that then
comment
All checks were successful
/ test (pull_request) Successful in 47s
1b1ce78565
wetneb approved these changes 2025-02-15 11:14:23 +01:00
ada4a merged commit b147bdafce into main 2025-02-15 11:24:58 +01:00
ada4a deleted branch 170-not_really_a_conflict-v2 2025-02-15 11:24:59 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: mergiraf/mergiraf#204
No description provided.