fix(ParsedMerge): only parse
conflicts starting at newlines; render
conflicts with non-newline-terminated sides correctly #185
No reviewers
Labels
No labels
Compat/Breaking
Kind
Bad merge
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
New language
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mergiraf/mergiraf#185
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ada4a/mergiraf:parsed_merge_parse_at_newline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fixes #149, refer to it for motivation
depends on #184
I can't believe I'm finally done with this.
The commits are somewhat less neatly separated than usually, but should be possible to follow nevertheless
Option
al a98413deabImpressive work! I think the extensive test cases show for themselves.
I had mixed feelings about ignoring malformed conflicts as this could cover up some issues, but it does feel like the right thing to do after all, especially since it could trigger in cases where a conflict-like string is intentionally included in the contents.
Thank you:)
There are actually two main reasons for this.
nom
instead, but couldn't bring the "there can be an arbitrarily big chunk of text between the two conflict markers, so proceed until you find one, and their sizes can vary by the way" thing to work, and ended up giving up. Because of that, I decided to encode as much of the behavior I expect from the regex as I could -- both in order to make sure future refactorings don't break it, and to have something to compare against when someone (hopefully) finds a way to migrate away from the regex.Yeah, that's what I ended up deciding as well.
Option
al #1846244ba2355
todcb5b90e3d
dcb5b90e3d
toa67b321eeb
933abb30e5
to1f7d2c1840