Skip to main content

configured_remote_names

Function configured_remote_names 

Source
pub fn configured_remote_names(cfg: &LayeredConfig) -> Vec<String>
Expand description

Every remote name resolvable via resolve_remote: the flat default remote (when the flat remote_endpoint is set) plus every named remote.<name>.url entry. Sorted and deduplicated (a BTreeSet cannot contain a name twice), which is what makes fetch --all / pull --all’s iteration order deterministic. Used by mkit fetch --all / mkit pull --all to enumerate the remotes to sync in one invocation.