Allow incomplete commit records to load their full data from gitaly. Commits can be based on a Hash of data retrieved from PostgreSQL, and this data can be intentionally incomplete in order to save space. A new method #gitaly? has been added to Gitlab::Git::Commit, which returns true if the underlying data source of the Commit is a Gitaly::GitCommit. CommitCollection now has a method #enrich which replaces non-gitaly commits in place with commits from gitaly. CommitCollection#without_merge_commits has been updated to call this method, as in order to determine a merge commit we need to have parent data. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/58805 |
||
|---|---|---|
| .. | ||
| conflict | ||
| patches | ||
| attributes_at_ref_parser_spec.rb | ||
| attributes_parser_spec.rb | ||
| blame_spec.rb | ||
| blob_spec.rb | ||
| branch_spec.rb | ||
| bundle_file_spec.rb | ||
| commit_spec.rb | ||
| compare_spec.rb | ||
| diff_collection_spec.rb | ||
| diff_spec.rb | ||
| diff_stats_collection_spec.rb | ||
| gitmodules_parser_spec.rb | ||
| hook_env_spec.rb | ||
| lfs_changes_spec.rb | ||
| lfs_pointer_file_spec.rb | ||
| merge_base_spec.rb | ||
| object_pool_spec.rb | ||
| pre_receive_error_spec.rb | ||
| push_spec.rb | ||
| raw_diff_change_spec.rb | ||
| remote_mirror_spec.rb | ||
| remote_repository_spec.rb | ||
| repository_cleaner_spec.rb | ||
| repository_spec.rb | ||
| tag_spec.rb | ||
| tree_spec.rb | ||
| user_spec.rb | ||
| util_spec.rb | ||
| wiki_spec.rb | ||
| wraps_gitaly_errors_spec.rb | ||