gitlab-ce/spec/lib/gitlab/git
Luke Duncalfe 38bf176c3c Enrich commits with full data in CommitCollection
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
2019-03-22 10:26:15 +13:00
..
conflict
patches
attributes_at_ref_parser_spec.rb
attributes_parser_spec.rb
blame_spec.rb Send project name with Gitaly repository requests 2019-02-05 21:33:09 -08:00
blob_spec.rb Bring back Rugged implementation of TreeEntry 2019-03-07 04:33:57 -08:00
branch_spec.rb Send project name with Gitaly repository requests 2019-02-05 21:33:09 -08:00
bundle_file_spec.rb Validate bundle files before unpacking them 2019-01-10 21:33:36 +00:00
commit_spec.rb Enrich commits with full data in CommitCollection 2019-03-22 10:26:15 +13:00
compare_spec.rb Send project name with Gitaly repository requests 2019-02-05 21:33:09 -08:00
diff_collection_spec.rb
diff_spec.rb Send project name with Gitaly repository requests 2019-02-05 21:33:09 -08:00
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 Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
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 Send project name with Gitaly repository requests 2019-02-05 21:33:09 -08:00
repository_cleaner_spec.rb Run rubocop -a 2019-03-13 13:42:43 +00:00
repository_spec.rb Bump Rugged to 0.28.0 2019-03-19 00:16:00 -07:00
tag_spec.rb Send project name with Gitaly repository requests 2019-02-05 21:33:09 -08:00
tree_spec.rb Bring back Rugged implementation of GetTreeEntries 2019-03-07 04:29:51 -08:00
user_spec.rb
util_spec.rb
wiki_spec.rb
wraps_gitaly_errors_spec.rb