MCPcopy Index your code
hub / github.com/openai/plugins / git_bytes

Function git_bytes

plugins/codex-security/scripts/workbench_target.py:31–38  ·  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

29
30
31def git_bytes(
32 target: Path,
33 *args: str,
34 git_dir: Path | None = None,
35 work_tree: Path | None = None,
36) -> bytes | None:
37 completed = git_command(target, *args, text=False, git_dir=git_dir, work_tree=work_tree)
38 return completed.stdout if completed.returncode == 0 else None
39
40
41def git_command(

Calls 1

git_commandFunction · 0.85

Tested by

no test coverage detected