Skip to main content

remote_priority

Function remote_priority 

Source
pub fn remote_priority(remote: &str) -> usize
Expand description

Priority tier for the shared upstream → origin → others remote precedence.

The single encoding of the precedence ADR-024 prescribes for every remote decision: preferred_remote_order sorts by it, and resolve_remote_tracking (worktree.rs) uses equal tiers to detect ambiguity. Lower is more preferred; all non-special remotes share a tier.