Skip to main content

collapse_unchanged_subtrees

Function collapse_unchanged_subtrees 

Source
pub fn collapse_unchanged_subtrees(node: &mut DiffNode) -> bool
Expand description

Keep unchanged siblings as one-line context while hiding their unchanged descendants. Paths that lead to a change and fully added/removed subtrees remain expanded.