pub fn discover_files_by_refs( refs: &FxHashSet<String>, changed_files: &[PathBuf], all_candidates: &[PathBuf], repo_root: Option<&Path>, ) -> Vec<PathBuf>