Skip to content
Snippets Groups Projects
Commit 6d1ead1d authored by Douwe Maan's avatar Douwe Maan
Browse files

Merge branch '26-optimize-fetching-of-a-rugged-commit-s-author-and-committer' into 'master'

Optimize fetch of the author and committer of a Rugged commit

Closes #26

See merge request !116
parents 55e3d7bd fd30738d
No related branches found
No related tags found
1 merge request!116Optimize fetch of the author and committer of a Rugged commit
Pipeline #
v 10.4.6
- Optimize fetch of the author and committer of a Rugged commit
v 10.4.5
- Write .gitattributes in binary mode to prevent Rails from converting ASCII-8BIT to UTF-8
- Compare returns an empty collection of commits on nil refs
Loading
Loading
Loading
Loading
@@ -287,15 +287,18 @@ module Gitlab
end
 
def init_from_rugged(commit)
author = commit.author
committer = commit.committer
@raw_commit = commit
@id = commit.oid
@message = commit.message
@authored_date = commit.author[:time]
@committed_date = commit.committer[:time]
@author_name = commit.author[:name]
@author_email = commit.author[:email]
@committer_name = commit.committer[:name]
@committer_email = commit.committer[:email]
@authored_date = author[:time]
@committed_date = committer[:time]
@author_name = author[:name]
@author_email = author[:email]
@committer_name = committer[:name]
@committer_email = committer[:email]
@parent_ids = commit.parents.map(&:oid)
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment