Skip to main content

insteadof_pair

Function insteadof_pair 

Source
pub fn insteadof_pair(alias: &str, hostname: &str, ns: &str) -> (String, String)
Expand description

The git-config (key, value) for the namespace-scoped insteadOf rewrite that lets a canonical submodule URL route through the alias’s key: key = url.<alias>:<ns>/.insteadOf value = git@<hostname>:<ns>/ so git rewrites git@<hostname>:<ns>/repo.git<alias>:<ns>/repo.gitid_<alias>. The trailing / on both sides scopes the rule to the namespace (so multiple aliases on the same host — different clients — each keep their own key).