Skip to main content

attribute_clone_regions

Function attribute_clone_regions 

Source
pub fn attribute_clone_regions(
    comparison: &mut AuditComparison,
    view: &AuditAnalysesView<'_>,
    change: &RunChange<'_>,
    base: Option<DupeBase<'_>>,
) -> Option<DupeDemotionDiffSource>
Expand description

Grade the head clone groups as regions, and set the introduced flag of each group from the grade of its region (see the clone_regions module of audit_run).

The opt-in shared diff decides when it is present; the merge-base worktree diff decides in the other cases. The diff is read only when a head group has a key that the base does not hold. base is None when the run has no base snapshot.