MCPcopy Create free account
hub / github.com/FastLED/FastLED / run_git

Function run_git

ci/clean-worktrees.py:55–65  ·  view source on GitHub ↗

Run a git command and return the completed process (no raise).

(args: list[str], cwd: Path | None)

Source from the content-addressed store, hash-verified

53
54
55def run_git(args: list[str], cwd: Path | None) -> subprocess.CompletedProcess[str]:
56 """Run a git command and return the completed process (no raise)."""
57 return subprocess.run(
58 ["git", *args],
59 cwd=str(cwd) if cwd else None,
60 capture_output=True,
61 text=True,
62 encoding="utf-8",
63 errors="replace",
64 check=False,
65 )
66
67
68def directory_size_bytes(path: Path) -> int:

Callers 3

classify_worktreeFunction · 0.85
remove_worktreeFunction · 0.85
mainFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected