MCPcopy Create free account
hub / github.com/OWASP/APTS / git_ls_files

Function git_ls_files

scripts/_ci_utils.py:25–31  ·  view source on GitHub ↗
(*patterns: str)

Source from the content-addressed store, hash-verified

23
24
25def git_ls_files(*patterns: str) -> list[Path]:
26 command = ["git", "ls-files", "-z"]
27 if patterns:
28 command.extend(["--", *patterns])
29
30 raw_output = subprocess.check_output(command, cwd=REPO_ROOT)
31 return [Path(item.decode("utf-8")) for item in raw_output.split(b"\0") if item]
32
33
34def read_text(path: str | Path) -> str:

Callers 4

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
validate_markdown_tablesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected