Skip to content

Replace references to MergeRequestDiff#commits with st_commits when we care only about the number of commits

username-removed-378947 requested to merge use-st-commits-where-possible into master

What does this MR do?

It optimizes the performance by replacing calls to MergeRequestDiff#commits with MergeRequestDiff#st_commits when it's possible. We don't have to instantiate all objects to check the size of the array

Does this MR meet the acceptance criteria?

Merge request reports