mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-17 16:46:06 +10:00
Merge branch 'hide-large-diffs' into 'master'
Show a notice for diffs that are empty/too large This builds upon https://gitlab.com/gitlab-org/gitlab_git/merge_requests/72 but will fail until said MR has been merged. Fixes gitlab-org/gitlab-ce#13912, gitlab-org/gitlab-ce#13644, gitlab-org/gitlab-ce#13557, gitlab-org/gitlab-ce#13267, gitlab-org/gitlab-ce#3906 See merge request !3185
This commit is contained in:
committed by
Rémy Coutable
parent
89f7eec178
commit
f14ee2f248
@@ -24,6 +24,10 @@ module Gitlab
|
||||
@lines ||= parser.parse(raw_diff.each_line).to_a
|
||||
end
|
||||
|
||||
def too_large?
|
||||
diff.too_large?
|
||||
end
|
||||
|
||||
def highlighted_diff_lines
|
||||
Gitlab::Diff::Highlight.new(self).highlight
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user