mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 12:46:07 +10:00
fix this issue(https://gitlab.com/gitlab-org/gitlab-ce/issues/1393). Add ignore whitespace optoin to Commits Compare view
10 lines
210 B
Ruby
10 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
|