Commit#parents does N + 1 Gitaly calls
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=20461)
</details>
<!--IssueSummary end-->
Noticed when working on gitlab-ce!14846
`Commit#parents` does N + 1 requests, but should be batched. If gitlab-ce!14846 is merged the needed interface is exposed.
See https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/models/commit.rb#L207-209
issue