debian-mirror-gitlab/lib/gitlab/compare_result.rb
2015-11-26 14:37:03 +05:30

9 lines
210 B
Ruby

module Gitlab
class CompareResult
attr_reader :commits, :diffs
def initialize(compare, diff_options = {})
@commits, @diffs = compare.commits, compare.diffs(nil, diff_options)
end
end
end