-
- Downloads
Move to Gitlab::Diff::FileCollection
Instead calling diff_collection.count use diff_collection.size which is cache on the diff_collection
Showing
- app/controllers/projects/commit_controller.rb 2 additions, 2 deletionsapp/controllers/projects/commit_controller.rb
- app/controllers/projects/compare_controller.rb 2 additions, 2 deletionsapp/controllers/projects/compare_controller.rb
- app/controllers/projects/merge_requests_controller.rb 10 additions, 6 deletionsapp/controllers/projects/merge_requests_controller.rb
- app/helpers/diff_helper.rb 1 addition, 1 deletionapp/helpers/diff_helper.rb
- app/models/commit.rb 4 additions, 0 deletionsapp/models/commit.rb
- app/models/compare.rb 23 additions, 0 deletionsapp/models/compare.rb
- app/models/merge_request.rb 4 additions, 0 deletionsapp/models/merge_request.rb
- app/models/safe_diffs.rb 0 additions, 5 deletionsapp/models/safe_diffs.rb
- app/models/safe_diffs/base.rb 0 additions, 55 deletionsapp/models/safe_diffs/base.rb
- app/models/safe_diffs/commit.rb 0 additions, 10 deletionsapp/models/safe_diffs/commit.rb
- app/models/safe_diffs/compare.rb 0 additions, 10 deletionsapp/models/safe_diffs/compare.rb
- app/models/safe_diffs/merge_request.rb 0 additions, 52 deletionsapp/models/safe_diffs/merge_request.rb
- app/services/merge_requests/merge_request_diff_cache_service.rb 1 addition, 1 deletion...rvices/merge_requests/merge_request_diff_cache_service.rb
- app/views/notify/repository_push_email.html.haml 1 addition, 1 deletionapp/views/notify/repository_push_email.html.haml
- app/views/projects/commit/_ci_menu.html.haml 1 addition, 1 deletionapp/views/projects/commit/_ci_menu.html.haml
- app/views/projects/diffs/_text_file.html.haml 1 addition, 1 deletionapp/views/projects/diffs/_text_file.html.haml
- app/views/projects/merge_requests/show/_diffs.html.haml 2 additions, 3 deletionsapp/views/projects/merge_requests/show/_diffs.html.haml
- app/workers/irker_worker.rb 1 addition, 1 deletionapp/workers/irker_worker.rb
- lib/gitlab/diff/file.rb 1 addition, 1 deletionlib/gitlab/diff/file.rb
- lib/gitlab/diff/file_collection.rb 9 additions, 0 deletionslib/gitlab/diff/file_collection.rb
app/models/compare.rb
0 → 100644
app/models/safe_diffs.rb
deleted
100644 → 0
app/models/safe_diffs/base.rb
deleted
100644 → 0
app/models/safe_diffs/commit.rb
deleted
100644 → 0
app/models/safe_diffs/compare.rb
deleted
100644 → 0
lib/gitlab/diff/file_collection.rb
0 → 100644
Please register or sign in to comment