(f)
| 158 | return None |
| 159 | res = run(["git", "diff", "--name-only", f"{base}...{head}"]) |
| 160 | if res.returncode != 0: |
| 161 | res = run(["git", "diff", "--name-only", base, head]) |
| 162 | if res.returncode != 0: |
| 163 | return None |
| 164 | return [f for f in res.stdout.splitlines() if f.strip()] |
| 165 | |
| 166 | |
| 167 | def is_non_rust_dep_path(f): |
| 168 | return any(f == p or f.startswith(p + "/") for p in NON_RUST_DEPS_PREFIX) |