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

Function git_output

plugins/codex-security/scripts/workbench_target.py:20–28  ·  view source on GitHub ↗
(
    target: Path,
    *args: str,
    git_dir: Path | None = None,
    work_tree: Path | None = None,
)

Source from the content-addressed store, hash-verified

18
19
20def git_output(
21 target: Path,
22 *args: str,
23 git_dir: Path | None = None,
24 work_tree: Path | None = None,
25) -> str | None:
26 completed = git_command(target, *args, text=True, git_dir=git_dir, work_tree=work_tree)
27 output = completed.stdout.strip()
28 return output if completed.returncode == 0 and output else None
29
30
31def git_bytes(

Callers 10

resolve_git_commitFunction · 0.90
require_diff_targetFunction · 0.90
scanned_source_textFunction · 0.90
git_worktree_contextFunction · 0.85
git_revisionFunction · 0.85
git_target_metadataFunction · 0.85

Calls 1

git_commandFunction · 0.85

Tested by

no test coverage detected