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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-19 00:09:11 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-19 00:09:11 +0300
commit93d7441cc98c1db55797a2181a3d9f4b3d26d82c (patch)
tree72a7da7027a656239c2a40cfcef1db58238a2247 /lib/gitlab/git
parent6b8d671de726534a03c18e025a586e1bc9c04a4f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/git')
-rw-r--r--lib/gitlab/git/blob.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab/git/blob.rb b/lib/gitlab/git/blob.rb
index f2a6211f270..cbde713e3b9 100644
--- a/lib/gitlab/git/blob.rb
+++ b/lib/gitlab/git/blob.rb
@@ -35,6 +35,11 @@ module Gitlab
docstring 'blob.truncated? == false'
end
+ define_histogram :gitlab_blob_size do
+ docstring 'Gitlab::Git::Blob size'
+ buckets [1_000, 5_000, 10_000, 50_000, 100_000, 500_000, 1_000_000]
+ end
+
class << self
def find(repository, sha, path, limit: MAX_DATA_DISPLAY_SIZE)
tree_entry(repository, sha, path, limit)