Expand description
Machine-parsed Git probes that keep “this is not a repository” separate from failures whose meaning is uncertain (damaged metadata, broken refs, signals).
Callers keep their own path decoding, canonicalization and error text; this module only decides which failures may be treated as certain absence.
Enums§
Functions§
- command
- A Git command whose diagnostics are always in the C locale.
- head_
commit - Verify repository access and the current commit without walking its parents.
- probe_
in_ directory - A probe run with
rootas the child’s working directory; seetoplevel_in_directory. - root_
commits git rev-list --max-parents=0 HEAD, run with-C root.spawnedgrows by the number of Git processes actually started, including the extra checks that verify an unborn branch.- supervised_
output - Preserve the probes’ ordinary output and unbounded wait, while observing the child on the calling thread. No new timeout or cancellation policy is added.
- toplevel_
in_ directory git rev-parse --show-toplevel, run withrootas the child’s working directory. A relative or empty PATH entry then findsgitrelative toroot, as it does for any other command started in that folder.