Expand description
Minimal Git CLI helpers used by capture identity. Pure parsers remain separate from the shared bounded subprocess executor; recursive test helpers exercise large-output, timeout, descendant, and cleanup paths.
Structs§
Enums§
Functions§
- detect_
commit_ metadata - parse_
authored_ epoch_ output - parse_
branch_ output - parse_
changed_ files_ output - parse_
toplevel_ output - Parse the output of
git rev-parse --show-toplevel. ReturnsNonefor empty or whitespace-only input so callers can fall back cleanly. - resolve_
commit_ metadata - resolve_
toplevel - Spawn
git rev-parse --show-toplevelincwd. ReturnsNonewhen git is unavailable, the directory is outside any git worktree, or the output is empty. Single subprocess, no network. - sanitize_
commit_ metadata - short_
sha_ for