diff options
author | Sean McGivern <sean@gitlab.com> | 2016-07-06 14:36:39 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-07-08 15:53:17 +0300 |
commit | 90a6be190feea0966e9ed9b6731d930bcff32d68 (patch) | |
tree | c653fca853b4edfccdb078deca56f652f7b2768a /app/helpers/diff_helper.rb | |
parent | b8d3016abbfeaa0658216a9d21138435f2379e38 (diff) |
Ensure only renderable text diffs are collapsed
Other diffs (those that are too large to render anyway, image diffs,
diffs suppressed by .gitattributes) should be rendered immediately.
Diffstat (limited to 'app/helpers/diff_helper.rb')
-rw-r--r-- | app/helpers/diff_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/diff_helper.rb b/app/helpers/diff_helper.rb index 9a5920edfa2..93f12198a58 100644 --- a/app/helpers/diff_helper.rb +++ b/app/helpers/diff_helper.rb @@ -15,6 +15,7 @@ module DiffHelper diff_commit = commit_for_diff(diff_file) blob = project.repository.blob_for_diff(diff_commit, diff_file) + @expand_all = true locals = { diff_file: diff_file, |