pub fn apply_remote_metadata(remote: &str) -> Result<usize>
Rebuild local stack metadata from the shared ref, fetching any listed branch that is not present locally. Returns how many branches it attached.