Skip to main content

apply_tag_sync

Function apply_tag_sync 

Source
pub fn apply_tag_sync(
    refs: &mut Vec<Ref>,
    mirror: &BTreeMap<String, Vec<(String, Oid)>>,
)
Expand description

Fills in every tag’s tag_sync and appends one remote-only row per mirrored tag name that has no refs/tags/<name> here.

A remote-only row is a RefKind::Tag whose tag_sync.local is false and whose target is the commit of the first remote (in name order) that has it; remotes that disagree with that one land in differs_on. One function for both backends, so they cannot disagree about it.