lib/gitlab/diff/highlight_cache.rb
# - Reads from cache
# - Assigns DiffFile#highlighted_diff_lines for cached files
#
Reads from cache
Assigns DiffFile#highlighted_diff_lines for cached files
Reads from cache Assigns DiffFile#highlighted_diff_lines for cached files
def decorate(diff_file)
        if content = read_file(diff_file)
          diff_file.highlighted_diff_lines = content.map do |line|
            Gitlab::Diff::Line.init_from_hash(line)
          end
        end
      end
def decorate ( diff_file ) if content = read_file ( diff_file ) diff_file . highlighted_diff_lines = content . map do | line | Gitlab :: Diff :: Line . init_from_hash ( line ) end end end
Reads from cache
 Assigns DiffFile#highlighted_diff_lines for cached files
Reads from cache Assigns DiffFile#highlighted_diff_lines for cached files
diff_file
<not_specific>