gitlab-org--gitlab-foss/lib/gitlab/diff
Zeger-Jan van de Weg f9565e3039
Batchload blobs for diff generation
After installing a new gem, batch-loader, a construct can be used to
queue data to be fetched in bulk. The gem was also introduced in both
gitlab-org/gitlab-ce!14680 and gitlab-org/gitlab-ce!14846, but those mrs
are not merged yet.

For the generation of diffs, both the old blob and the new blob need to
be loaded. This for every file in the diff, too. Now we collect all
these so we do 1 fetch. Three `.allow_n_plus_1_calls` have been removed,
which I expect to be valid, but this needs to be confirmed by a full CI
run.

Possibly closes:
- https://gitlab.com/gitlab-org/gitlab-ce/issues/37445
- https://gitlab.com/gitlab-org/gitlab-ce/issues/37599
- https://gitlab.com/gitlab-org/gitlab-ce/issues/37431
2017-11-21 13:53:26 +01:00
..
file_collection Batchload blobs for diff generation 2017-11-21 13:53:26 +01:00
formatters Commenting on image diffs 2017-10-07 04:25:17 +00:00
diff_refs.rb Remove unnecessary comments 2017-09-25 10:23:43 +02:00
file.rb Batchload blobs for diff generation 2017-11-21 13:53:26 +01:00
highlight.rb Use Diff::File blob methods from diff highlighter 2017-06-08 09:39:54 -05:00
image_point.rb Commenting on image diffs 2017-10-07 04:25:17 +00:00
inline_diff.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
inline_diff_markdown_marker.rb
inline_diff_marker.rb changed InlineDiffMarker to make it html_safe its output 2017-09-12 13:42:40 -04:00
line.rb Re-enable SqlInjection and CommandInjection 2017-08-08 10:50:54 -04:00
line_mapper.rb Whitelist or fix additional Gitlab/PublicSend cop violations 2017-08-14 12:14:11 -04:00
parallel_diff.rb Don't display comment on unchanged line on both sides in parallel diff 2017-06-19 11:50:46 -05:00
parser.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
position.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
position_tracer.rb