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