Skip to main content

context

Function context 

Source
pub fn context(
    endpoint: &RemoteEndpoint,
    workdir: &Path,
    cancel: &CancelToken,
) -> Result<GitContext, RemoteGitError>
Expand description

The pure cached context of a remote repository (R6): HEAD sha, branch and remotes captured once on a worker. Unborn HEAD and detached HEAD are honest None/name states, distinguished by exit code — never by stderr text.