Skip to content

Use DiffCollections

Jacob Vosmaer requested to merge enumerator-diffs into master

Companion to https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2705

Instead of returning full arrays of potentially huge Diff instances we return a DiffCollection which has built-in limits. DiffCollection looks like a Ruby Enumerable.

We also add Count.lines, an efficient line counting function.

And we removed some obsolete timeout code.

Merge request reports