MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / changed_files

Function changed_files

tools/test_selector.py:268–273  ·  view source on GitHub ↗
(repo: Path, base: str, head: str)

Source from the content-addressed store, hash-verified

266
267
268def changed_files(repo: Path, base: str, head: str) -> list[str]:
269 if not base or not head:
270 return []
271 out = _run_git(["diff", "--name-only", "--diff-filter=ACMRTD", base, head], repo)
272 files = [_normalize_relpath(line) for line in out.splitlines() if line.strip()]
273 return sorted(set(files))
274
275
276def _is_safe_relpath(p: str) -> bool:

Callers 1

mainFunction · 0.85

Calls 2

_normalize_relpathFunction · 0.85
_run_gitFunction · 0.70

Tested by

no test coverage detected