gitlab-org--gitlab-foss/lib/gitlab/git
Stan Hu 4ee08fd1f7 Add back Rugged support for retrieving a commit tree entry
This brings back some of the changes in
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20176/diffs.

We discovered another N+1 that hits Gitaly `TreeEntry` via the
`RelativeLinkFilter`:
https://gitlab.com/gitlab-org/gitlab-ce/issues/58657. When a blob is
loaded with many relative links, `TreeEntry` is called for each link to
scan the URI type.

There are multiple paths that hit Gitaly `TreeEntry`, and
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25706 did not
cover all cases. This commit covers another common use case.

For users using Gitaly on top of NFS, accessing the Git data directly
via Rugged may be faster than going through than Gitaly. This merge
request introduces the feature flag `rugged_commit_tree_entry` to
activate the Rugged method.
2019-03-08 16:01:59 -08:00
..
conflict
patches
rugged_impl Add back Rugged support for retrieving a commit tree entry 2019-03-08 16:01:59 -08:00
attributes_at_ref_parser.rb
attributes_parser.rb
blame.rb
blob.rb Bring back Rugged implementation of TreeEntry 2019-03-07 04:33:57 -08:00
branch.rb
bundle_file.rb Validate bundle files before unpacking them 2019-01-10 21:33:36 +00:00
commit.rb Add back Rugged support for retrieving a commit tree entry 2019-03-08 16:01:59 -08:00
commit_stats.rb
compare.rb
diff.rb
diff_collection.rb
diff_stats_collection.rb
gitmodules_parser.rb
hook_env.rb
index.rb
lfs_changes.rb
lfs_pointer_file.rb
merge_base.rb
object_pool.rb Rename gl_project_name -> gl_project_path 2019-02-05 21:33:10 -08:00
operation_service.rb
path_helper.rb
pre_receive_error.rb
push.rb
raw_diff_change.rb
ref.rb Bring back Rugged implementation of find_commit 2019-03-01 08:45:51 -08:00
remote_mirror.rb
remote_repository.rb
repository.rb Merge branch 'sh-rugged-commit-is-ancestor' into 'master' 2019-03-07 11:36:12 +00:00
repository_cleaner.rb
repository_mirroring.rb
tag.rb
tree.rb Bring back Rugged implementation of GetTreeEntries 2019-03-07 04:29:51 -08:00
user.rb
util.rb
version.rb
wiki.rb
wiki_file.rb
wiki_page.rb
wiki_page_version.rb
wraps_gitaly_errors.rb