debian-mirror-gitlab/lib/gitlab/compare_result.rb

10 lines
210 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
module Gitlab
class CompareResult
attr_reader :commits, :diffs
2015-11-26 14:37:03 +05:30
def initialize(compare, diff_options = {})
@commits, @diffs = compare.commits, compare.diffs(nil, diff_options)
2014-09-02 18:07:02 +05:30
end
end
end