Uncouple diffing from projects
Summary
While working on !31545 (closed) we noticed that some of the diffing functionality is coupled to projects, i.e. when trying to use it with wikis in some cases the code was accessing the main project repository rather than the wiki repository.
Improvements
Replace references to project
with container
, and try to work with repository
objects directly where possible rather than passing them via a project
instance.
Involved components
lib/gitlab/diff/file_collection/commit.rb
lib/gitlab/diff/file_collection/base.rb
Projects::WikisController#diff