This commit, introduced in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23812, fixes a problem creating a displaying image diff notes when the image is stored in LFS. The main problem was that `Gitlab::Diff::File` was returning an invalid valid in `text?` for this kind of files. It also fixes a rendering problem with other LFS files, like text ones. They LFS pointer shouldn't be shown when LFS is enabled for the project, but they were. |
||
|---|---|---|
| .. | ||
| file_collection | ||
| formatters | ||
| diff_refs_spec.rb | ||
| file_spec.rb | ||
| highlight_cache_spec.rb | ||
| highlight_spec.rb | ||
| inline_diff_markdown_marker_spec.rb | ||
| inline_diff_marker_spec.rb | ||
| inline_diff_spec.rb | ||
| line_mapper_spec.rb | ||
| line_spec.rb | ||
| lines_unfolder_spec.rb | ||
| parallel_diff_spec.rb | ||
| parser_spec.rb | ||
| position_spec.rb | ||
| position_tracer_spec.rb | ||