diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2017-09-11 14:52:27 +0200 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2017-09-21 11:05:06 +0200 |
commit | eb36fa17a6ae5cda8950904b5a52e6aa365ae591 (patch) | |
tree | 867ca7add72ad14dd6bb342eb60b963d8faa9ee7 /lib/gitlab/diff | |
parent | 36dc65d5ca34234faf8e79106ed081a28659d899 (diff) | |
download | gitlab-ce-eb36fa17a6ae5cda8950904b5a52e6aa365ae591.tar.gz |
Migrate Gitlab::Git::Repository#diff to Gitalyfeature/migrate-repository-diff
Closes gitaly#524
Diffstat (limited to 'lib/gitlab/diff')
-rw-r--r-- | lib/gitlab/diff/file.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/diff/file.rb b/lib/gitlab/diff/file.rb index 1dabd4ebdd0..fcac85ff892 100644 --- a/lib/gitlab/diff/file.rb +++ b/lib/gitlab/diff/file.rb @@ -5,7 +5,7 @@ module Gitlab delegate :new_file?, :deleted_file?, :renamed_file?, :old_path, :new_path, :a_mode, :b_mode, :mode_changed?, - :submodule?, :expanded?, :too_large?, :collapsed?, :line_count, to: :diff, prefix: false + :submodule?, :expanded?, :too_large?, :collapsed?, :line_count, :has_binary_notice?, to: :diff, prefix: false # Finding a viewer for a diff file happens based only on extension and whether the # diff file blobs are binary or text, which means 1 diff file should only be matched by 1 viewer, @@ -166,7 +166,7 @@ module Gitlab end def binary? - old_blob&.binary? || new_blob&.binary? + has_binary_notice? || old_blob&.binary? || new_blob&.binary? end def text? |