Skip to content

When viewing a commit, do not go to the blob for the file path

What does this MR do?

This defers a slow Gitaly call when looking at a single commit. We already have the filename in memory, so can use it directly here.

It doesn't completely solve the issue - we still load the blobs to check whether a file is binary or not - but we don't haver to load as many once this is merged.

Screenshots

GetBlobs RPC before

Screenshot_from_2019-09-18_14-35-46

GetBlobs RPC after

Screenshot_from_2019-09-18_14-39-39

Does this MR meet the acceptance criteria?

Conformity

Related to #31118 (closed)

Edited by Bob Van Landuyt

Merge request reports