2016-07-26 03:21:42 -04:00
|
|
|
module Gitlab
|
|
|
|
module Diff
|
|
|
|
module FileCollection
|
|
|
|
class Commit < Base
|
|
|
|
def initialize(commit, diff_options:)
|
2016-07-27 07:09:52 -04:00
|
|
|
# Not merge just set defaults
|
|
|
|
diff_options = diff_options || Gitlab::Diff::FileCollection.default_options
|
|
|
|
|
2016-07-26 03:21:42 -04:00
|
|
|
super(commit.diffs(diff_options),
|
|
|
|
project: commit.project,
|
|
|
|
diff_options: diff_options,
|
|
|
|
diff_refs: commit.diff_refs)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|