pub async fn resolve_path_to_binding(
path: &Path,
client: &ApiClient,
) -> Result<Option<RepoBinding>, Box<dyn Error>>Expand description
Resolve a filesystem path to a registered-repo binding: read its origin
remote URL and ask the server. Ok(None) when the path has no remote or
the server has no matching codebase (pre-registered-only).
When the codebase has several live repos, the one the checkout’s own
.visdom/tracing.toml binds wins — the repo its hooks stream to —
else the lowest id (deterministic). Callers that must not guess (repo switch) use resolve_path_to_codebase and ResolvedCodebase::choose.