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