diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-02-11 18:30:05 -0500 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2016-02-11 18:30:05 -0500 |
commit | 5a5ee6188ba2960b80d0e00fa5404ebb55135698 (patch) | |
tree | eb9a0206e66c396620ce4af45b2434a325053380 /lib | |
parent | 07faf8144a63ad6effe63eac6cc0d02a1d67d6c3 (diff) | |
download | gitlab-ce-5a5ee6188ba2960b80d0e00fa5404ebb55135698.tar.gz |
Load all blob data when highlighting content for git-blame.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/blame.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/blame.rb b/lib/gitlab/blame.rb index 313e6b9fc03..997a22779a0 100644 --- a/lib/gitlab/blame.rb +++ b/lib/gitlab/blame.rb @@ -40,6 +40,7 @@ module Gitlab end def highlighted_lines + @blob.load_all_data!(repository) @highlighted_lines ||= Gitlab::Highlight.highlight(@blob.name, @blob.data).lines end |