pub fn resolve_remote(cfg: &LayeredConfig, name: &str) -> Option<ResolvedRemote>Expand description
Resolve a remote NAME to its endpoint + provenance.
default(or an empty name): the flatremote_endpoint; chosen by the repo iff the repo layer set it.- any other name: a
remote.<name>.urlentry. Named remotes are stored repo-scoped, so a named remote present in the repo layer isrepo_chosen; one present only in the user layer is not.
Returns None when the name is unknown / its URL is empty.