pub async fn resolve_path_to_project_binding(
path: &Path,
project_id: Uuid,
client: &ApiClient,
) -> Result<Option<RepoBinding>, Box<dyn Error>>Expand description
resolve_path_to_binding among the repos of project project_id only
(VIS-1258): the checkout’s codebase, narrowed to the repos the project
holds, then picked the same way. Ok(None) when the checkout has no origin
remote, the server has no codebase for it, or none of that codebase’s live
repos belongs to the project — a repo outside the project is never
returned, since a send declaring the project with it is refused.