Skip to main content

edits_base_clone

Function edits_base_clone 

Source
pub fn edits_base_clone(
    head: &[CloneSpan],
    change: &CloneChange<'_>,
    base_groups: &[BaseCloneGroup],
    min_lines: usize,
) -> bool
Expand description

Whether the head clone group with the root-relative spans head is an edit of one of base_groups, by the rule that grades a clone region inherited-edited: each copy maps through the diff into a different copy of one base group, at the same relative place, and grows by fewer than min_lines lines. The base group may have more copies.