class Git::Object::Commit

def set_commit(data)

def set_commit(data)
  if data['sha']
    @sha = data['sha']
  end
  @committer = Git::Author.new(data['committer'])
  @author = Git::Author.new(data['author'])
  @tree = Git::Object::Tree.new(@base, data['tree'])
  @parents = data['parent'].map{ |sha| Git::Object::Commit.new(@base, sha) }
  @message = data['message'].chomp
end