diff --git a/app/views/commits/_text_file.html.haml b/app/views/commits/_text_file.html.haml
index db71c387ecdf5bff42ed6ad8fc0230070c8bf6f0..1ef4a3c8a6618743951e475f26fd68ddfb463223 100644
--- a/app/views/commits/_text_file.html.haml
+++ b/app/views/commits/_text_file.html.haml
@@ -2,6 +2,7 @@
- line_new = 0
- lines_arr = diff.diff.lines.to_a
- lines_arr.each do |line|
+ - next if line.match(/^--- \/dev\/null/)
- next if line.match(/^--- a/)
- next if line.match(/^\+\+\+ b/)
- if line.match(/^@@ -/)