diff options
author | Luke Duncalfe <lduncalfe@eml.cc> | 2019-03-14 17:20:40 +1300 |
---|---|---|
committer | Luke Duncalfe <lduncalfe@eml.cc> | 2019-03-22 10:26:15 +1300 |
commit | 38bf176c3cf7b26233ad78103a04546445348983 (patch) | |
tree | 9a1d9945227991195230394b67fff338c2d28d4d /app/workers | |
parent | dd43abecf93035d36b649c75c05143cc08db1566 (diff) | |
download | gitlab-ce-38bf176c3cf7b26233ad78103a04546445348983.tar.gz |
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
Diffstat (limited to 'app/workers')
0 files changed, 0 insertions, 0 deletions