Method: Git::Object::Commit#set_commit
- Defined in:
- lib/git/object.rb
#set_commit(data) ⇒ Object
219 220 221 222 223 224 225 226 |
# File 'lib/git/object.rb', line 219 def set_commit(data) @sha ||= data['sha'] @committer = Git::Author.new(data['committer']) = Git::Author.new(data['author']) @tree = Git::Object::Tree.new(@base, data['tree']) @parents = data['parent'].map{ |sha| Git::Object::Commit.new(@base, sha) } = data['message'].chomp end |