MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _git_show

Function _git_show

tools/skillgen/gen.py:578–589  ·  view source on GitHub ↗

Read a blob from git, normalised to LF.

(ref: str)

Source from the content-addressed store, hash-verified

576
577
578def _git_show(ref: str) -> str:
579 """Read a blob from git, normalised to LF."""
580 result = subprocess.run(
581 ["git", "show", ref],
582 cwd=REPO_ROOT,
583 capture_output=True,
584 text=True,
585 encoding="utf-8",
586 )
587 if result.returncode != 0:
588 raise SystemExit(f"error: could not read {ref}: {result.stderr.strip()}")
589 return result.stdout
590
591
592def _v8_available() -> bool:

Callers 3

audit_coverageFunction · 0.85
monolith_roundtripFunction · 0.85
_always_on_constantsFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected