Class: Gitlab::Diff::FileCollection::Commit

Inherits:
Base
  • Object
show all
Defined in:
lib/gitlab/diff/file_collection/commit.rb

Instance Attribute Summary

Attributes inherited from Base

#diff_options, #diff_refs, #diffable, #fallback_diff_refs, #project

Instance Method Summary collapse

Methods inherited from Base

#clear_cache, default_options, #diff_file_paths, #diff_file_with_new_path, #diff_file_with_old_path, #diff_files, #diffs, #pagination_data, #raw_diff_files, #unfold_diff_files, #write_cache

Methods included from Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Constructor Details

#initialize(commit, diff_options:) ⇒ Commit

Returns a new instance of Commit.


7
8
9
10
11
12
# File 'lib/gitlab/diff/file_collection/commit.rb', line 7

def initialize(commit, diff_options:)
  super(commit,
    project: commit.project,
    diff_options: diff_options,
    diff_refs: commit.diff_refs)
end