summaryrefslogtreecommitdiff
path: root/lib/gitlab/diff/file_collection/commit.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-08-08 10:14:21 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-08-08 10:14:21 +0200
commit8ae222092dc63d672dc505358d7bdfbb8478c774 (patch)
tree44082b65f583923ff48fd1315e0ccf44c2293b6e /lib/gitlab/diff/file_collection/commit.rb
parent1b5e2303debf00784603d6bd9d87d613de3c8091 (diff)
parent91030230545a199a86c2742600a7a2e68ef75c98 (diff)
downloadgitlab-ce-8ae222092dc63d672dc505358d7bdfbb8478c774.tar.gz
Merge branch 'master' into feature/svg-badge-template
* master: (363 commits) Added changelog item for issuable form dropdowns Add 'run tests' docs from GDK Bump gitlab_git to lazy load compare commits Add examples to repository files API (!5465) Ignore URLs starting with // (!5677) Add failing test for #7032 Update timeago to shorter representation Add missing DOWNTIME constant to the AddTimestampsToMembersAgain migration Added guide about migrations and downtime Update CHANGELOG for 8.10.4 Add a data migration to fix some missing timestamps in the members table (again) Move abilities by subject class to a dedicated method Remove unnecessary empty line after css var Set consistency in list text height css Add description to text/plain emails Fix Rename `add_users_into_project` and `projects_ids` fix spec Underscore variable to camelCase using shared path for project import uploads and refactored gitlab remove export worker Structure the development documentation ...
Diffstat (limited to 'lib/gitlab/diff/file_collection/commit.rb')
-rw-r--r--lib/gitlab/diff/file_collection/commit.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/gitlab/diff/file_collection/commit.rb b/lib/gitlab/diff/file_collection/commit.rb
new file mode 100644
index 00000000000..4dc297ec036
--- /dev/null
+++ b/lib/gitlab/diff/file_collection/commit.rb
@@ -0,0 +1,14 @@
+module Gitlab
+ module Diff
+ module FileCollection
+ class Commit < Base
+ def initialize(commit, diff_options:)
+ super(commit,
+ project: commit.project,
+ diff_options: diff_options,
+ diff_refs: commit.diff_refs)
+ end
+ end
+ end
+ end
+end