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
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-12-11 15:17:11 +0300
committerPhil Hughes <me@iamphill.com>2017-12-11 15:17:11 +0300
commitf38a6d6ee610e7301be35740d1cc0e3a1cbd42d0 (patch)
treebfd39b0e38fd3328149966ecdc2329f932de9470 /app/controllers/projects/tree_controller.rb
parent12d33b883adda7093f0f4b838532871036af3925 (diff)
Added LFS badge to indicate LFS tracked files
Closes #15567
Diffstat (limited to 'app/controllers/projects/tree_controller.rb')
-rw-r--r--app/controllers/projects/tree_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/projects/tree_controller.rb b/app/controllers/projects/tree_controller.rb
index f3719059f88..d56361eb3a5 100644
--- a/app/controllers/projects/tree_controller.rb
+++ b/app/controllers/projects/tree_controller.rb
@@ -26,6 +26,7 @@ class Projects::TreeController < Projects::ApplicationController
respond_to do |format|
format.html do
+ @lfs_blobs = Gitlab::Git::Blob.batch_lfs_pointers(@project.repository, @tree.blobs.map(&:id))
@last_commit = @repository.last_commit_for_path(@commit.id, @tree.path) || @commit
end