Skip to content
Snippets Groups Projects
Commit 4d2278e7 authored by Riyad Preukschas's avatar Riyad Preukschas
Browse files

Rename commits/text_file partial to text_diff

parent 6d5c29dc
No related branches found
No related tags found
1 merge request!1878Discussions (a.k.a. Grouped Comments)
Loading
Loading
@@ -38,10 +38,10 @@
 
%br/
.diff_file_content
-# Skipp all non non-supported blobs
-# Skip all non-supported blobs
- next unless file.respond_to?('text?')
- if file.text?
= render "commits/text_file", diff: diff, index: i
= render "commits/text_diff", diff: diff, index: i
- elsif file.image?
- old_file = (@commit.prev_commit.tree / diff.old_path) if !@commit.prev_commit.nil?
- if diff.renamed_file || diff.new_file || diff.deleted_file
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment