Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-02-12 02:30:05 +0300
committerRubén Dávila <rdavila84@gmail.com>2016-02-12 02:30:05 +0300
commit5a5ee6188ba2960b80d0e00fa5404ebb55135698 (patch)
treeeb9a0206e66c396620ce4af45b2434a325053380 /lib
parent07faf8144a63ad6effe63eac6cc0d02a1d67d6c3 (diff)
Load all blob data when highlighting content for git-blame.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/blame.rb1
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