pub fn capture_git(
git: &AdmittedTool,
context: &ExecutionContext<'_>,
options: StatusOptions,
limits: OutputLimits,
) -> Result<GitObservations, GitError>Expand description
Observe HEAD, its tree and status, with per-query bounds and no retries.
Commands disable optional locks and the filesystem monitor. The complete
environment and working directory remain explicit; Git environment/config
can redirect repository selection, and callers own that admission policy.
Status is opaque porcelain-v1 -z output, checked only for NUL termination.
These separate observations cannot prove an atomic or reproducible build.
§Errors
Returns typed tool failures, malformed object IDs or unterminated status. Retains earlier captures and the failed query’s available evidence.