Skip to main content

Module git_util

Module git_util 

Source
Expand description

Minimal, dependency-free git shell-outs shared by the context-artifact and analysis tools (ctx_impact, ctx_architecture, context_artifacts).

These intentionally stay tiny and best-effort: a missing or failing git never aborts a tool, it just yields false/None so callers degrade gracefully.

Functionsยง

git_dirty
Returns true when the working tree at project_root has uncommitted changes. Any git failure (not a repo, git absent) reports false.
git_out
Runs git <args> in project_root and returns trimmed stdout, or None on non-zero exit, non-UTF-8 output, empty output, or spawn failure.