MCPcopy Create free account
hub / github.com/acking-you/static_flow / changed_files

Function changed_files

scripts/ci_affected.py:148–157  ·  view source on GitHub ↗

Files changed between base and head, or None if undeterminable.

(base, head)

Source from the content-addressed store, hash-verified

146 heavy.add(crate)
147 break
148 for dep in deps.get(current, ()):
149 if dep not in seen:
150 seen.add(dep)
151 stack.append(dep)
152 return heavy
153
154
155def changed_files(base, head):
156 """Files changed between base and head, or None if undeterminable."""
157 if not base or not head or set(base) <= {"0"}:
158 return None
159 res = run(["git", "diff", "--name-only", f"{base}...{head}"])
160 if res.returncode != 0:

Callers 1

detectFunction · 0.85

Calls 1

runFunction · 0.70

Tested by

no test coverage detected