Diff::FileCollection::Base#diff_files is calling Gitaly n+1 times per invocation
Diff::FileCollection::Base#diff_files
is calling Gitaly n+1
times per invocation
This code needs to be refactored to fetch all required information in a single batched call.