diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-18 21:09:11 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-18 21:09:11 +0000 |
commit | 93d7441cc98c1db55797a2181a3d9f4b3d26d82c (patch) | |
tree | 72a7da7027a656239c2a40cfcef1db58238a2247 /lib | |
parent | 6b8d671de726534a03c18e025a586e1bc9c04a4f (diff) | |
download | gitlab-ce-93d7441cc98c1db55797a2181a3d9f4b3d26d82c.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git/blob.rb | 5 |
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) |