-
- Downloads
Memoize Git::Repository#has_visible_content?
This is called repeatedly when viewing a merge request, and this should improve performance significantly by avoiding shelling out to git every time. This should help https://gitlab.com/gitlab-com/infrastructure/issues/4027.
Showing
- changelogs/unreleased/sh-memoize-repository-empty.yml 5 additions, 0 deletionschangelogs/unreleased/sh-memoize-repository-empty.yml
- lib/gitlab/git/repository.rb 7 additions, 0 deletionslib/gitlab/git/repository.rb
- spec/lib/gitlab/git/repository_spec.rb 11 additions, 1 deletionspec/lib/gitlab/git/repository_spec.rb
Please register or sign in to comment