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