pub fn find_protected_base<'b>( repo: &dyn Repo, branches: &'b BranchSet, head_oid: Oid, ) -> Option<&'b Branch>