pub fn write_ref(layout: &RepoLayout, branch: &str, h: &Hash) -> RefResult<()>
Write a branch ref (unconditional — equivalent to update_ref(branch, RefWriteCondition::Any, h)).
update_ref(branch, RefWriteCondition::Any, h)