Skip to content

Cache last_commit_for_path

What does this MR do?

Cache last_commit_for_path. It reduces reading git repository.

Why was this MR needed?

Repository#last_commit_for_path reads git repository twice(Gitlab::Popen#popen and Gitlab::Git::Commit#find).

Opening Files tree view, Repository#last_commit_for_path is called every tree entries.

Merge request reports