Skip to main content

branch_changed_files

Function branch_changed_files 

Source
pub fn branch_changed_files(root: &Path) -> Vec<String>
Expand description

Repo-relative files you’re working on this branch: committed changes since the branch diverged from the trunk, plus uncommitted edits. Empty on the trunk itself (where it isn’t a useful signal) or outside git. Feeds the branch ranking boost — necessarily a few git calls, but gated to feature branches.