MCPcopy
hub / github.com/openai/plugins / git_revision

Function git_revision

plugins/codex-security/scripts/workbench_target.py:412–413  ·  view source on GitHub ↗
(target: Path)

Source from the content-addressed store, hash-verified

410
411
412def git_revision(target: Path) -> str:
413 return git_output(target, "rev-parse", "HEAD") or "unversioned"
414
415
416def git_target_metadata(target: Path) -> dict[str, Any]:

Callers 4

start_scanFunction · 0.90
require_unchanged_targetFunction · 0.90
remediation_availabilityFunction · 0.90

Calls 1

git_outputFunction · 0.85

Tested by

no test coverage detected