2018-08-03 13:22:24 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-05-16 11:46:18 -04:00
|
|
|
module DiffFile
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
def to_hash
|
|
|
|
keys = Gitlab::Git::Diff::SERIALIZE_KEYS - [:diff]
|
|
|
|
|
|
|
|
as_json(only: keys).merge(diff: diff).with_indifferent_access
|
|
|
|
end
|
|
|
|
end
|