Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-06-08 19:14:56 +0300
committerSean McGivern <sean@mcgivern.me.uk>2017-06-08 19:14:56 +0300
commite9002222a0fc65e4e3328c7c536e43516986eb40 (patch)
tree8f36da7826e9d4f91ba726cdd96ce02ef8367347 /app
parent9ea883fb5d02608010db858237cbd4926ae99650 (diff)
parentffbbd4112eb5a0a927925e70644128bf25145414 (diff)
Merge branch 'dm-diff-file-diffable' into 'master'
Move diffable? method from Repository to Diff::File See merge request !11980
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/diffs/_content.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/diffs/_content.html.haml b/app/views/projects/diffs/_content.html.haml
index 59844bc00cd..ec1c434a4b8 100644
--- a/app/views/projects/diffs/_content.html.haml
+++ b/app/views/projects/diffs/_content.html.haml
@@ -6,7 +6,7 @@
- elsif blob.truncated?
.nothing-here-block The file could not be displayed because it is too large.
- elsif blob.readable_text?
- - if !diff_file.repository.diffable?(blob)
+ - if !diff_file.diffable?
.nothing-here-block This diff was suppressed by a .gitattributes entry.
- elsif diff_file.collapsed?
- url = url_for(params.merge(action: :diff_for_path, old_path: diff_file.old_path, new_path: diff_file.new_path, file_identifier: diff_file.file_identifier))