MCPcopy Create free account
hub / github.com/idank/explainshell / _git_run

Function _git_run

explainshell/extraction/common.py:80–86  ·  view source on GitHub ↗
(args: list[str])

Source from the content-addressed store, hash-verified

78
79
80def _git_run(args: list[str]) -> subprocess.CompletedProcess[str]:
81 return subprocess.run(
82 ["git", "-C", str(_REPO_ROOT), *args],
83 capture_output=True,
84 text=True,
85 check=False,
86 )
87
88
89@functools.lru_cache(maxsize=8)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected