pub fn branch_oid(branch: &Branch<'_>) -> Result<Oid>
Give the oid of the branch or an appropriate error.