pub fn context(
id: &ContainerId,
workdir: &Path,
cancel: &CancelToken,
) -> Result<GitContext, RemoteGitError>Expand description
The pure cached context of an in-container repository: HEAD sha,
branch and remotes captured once on a worker, the same GitContext
the local and remote paths produce — with RepoTarget::Container
as the repo identity. Unborn HEAD and detached HEAD are honest
None/name states, distinguished by exit code — never by stderr
text.