Skip to main content

parse_conflicts

Function parse_conflicts 

Source
pub fn parse_conflicts(content: &str) -> Result<Vec<ConflictSegment>>
Expand description

Parse a conflicted file’s content into text/conflict segments.

Errors with Error::Parse on a malformed file: a region missing its ======= separator or >>>>>>> terminator, or a stray separator/end marker outside a region.