pub fn resolve_repo(cwd: &Path) -> Result<Option<GitContext>, GitError>Expand description
Walk up from cwd looking for a repository. Returns Ok(None)
only for the legitimate “no repo here” cases (no .git found
walking up). Permission errors, trust rejections (safe.directory),
ceiling-dir misconfig, and path-input errors surface as
GitError::CorruptRepo so they reach the user instead of
silently hiding the segment.