- output(
- build
- .config
- .git()
- .arg("diff-index")
- .arg("--name-only")
- .arg("--merge-base")
- .arg(&format!("{remote}/master")),
- )
- .lines()
- .map(|s| s.trim().to_owned())
- .collect(),
+ output(build.config.git().arg("diff-index").arg("--name-only").arg(merge_base.trim()))
+ .lines()
+ .map(|s| s.trim().to_owned())
+ .filter(|f| Path::new(f).extension().map_or(false, |ext| ext == "rs"))
+ .collect(),