Skip to main content

changed_files

Function changed_files 

Source
pub fn changed_files(refs: &[PushRef]) -> Vec<String>
Expand description

Every path touched by the refs being pushed.

Shared because two callers need exactly this list and would otherwise write the zero-oid and range handling twice: cargo-test decides whether a suite is worth running, and a declared pre-push check decides whether its scope applies. A copy that got the delete case wrong would run a test suite on a branch deletion.