MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / _build_git_section

Function _build_git_section

src/context_system/builder.py:87–98  ·  view source on GitHub ↗
(cwd: str)

Source from the content-addressed store, hash-verified

85
86
87def _build_git_section(cwd: str) -> str:
88 from .git_context import collect_git_context, format_git_status
89 try:
90 ctx = _run_async(collect_git_context(cwd))
91 if not ctx.available:
92 return ""
93 formatted = format_git_status(ctx)
94 if formatted:
95 return f"## Git Context\n{formatted}"
96 except Exception:
97 pass
98 return ""
99
100
101def _build_claude_md_section(cwd: str, root: Path) -> str:

Callers 1

build_context_promptFunction · 0.85

Calls 3

_run_asyncFunction · 0.85
collect_git_contextFunction · 0.85
format_git_statusFunction · 0.85

Tested by

no test coverage detected