Skip to main content

classify_change_kind

Function classify_change_kind 

Source
pub fn classify_change_kind(project: &ProjectRoot, file_path: &str) -> String
Expand description

Check whether the diff for a single file is additive-only (no deleted lines). Returns "additive" if the file has 0 deleted lines (new exports, new code), "breaking" if it was deleted, or "mixed" otherwise.