pub fn tracking_ref_name(
remote: &str,
ref_name: &str,
) -> Result<String, SyncError>Expand description
Computes the remote-tracking ref name for a lore ref.
A lore ref such as refs/lore/sessions tracks a remote under
refs/lore/remotes/<remote>/sessions, mirroring how refs/remotes/* shadows
refs/heads/*. Fetching into this namespace (rather than into the live local
ref) lets the merge model read remote state even when the local ref has
diverged. Returns an error if ref_name is not under refs/lore/.