Method: Git::Object::Commit#initialize

Defined in:
lib/git/object.rb

#initialize(base, sha, init = nil) ⇒ Commit

Returns a new instance of Commit.

[View source]

162
163
164
165
166
167
168
169
170
171
172
# File 'lib/git/object.rb', line 162

def initialize(base, sha, init = nil)
  super(base, sha)
  @tree = nil
  @parents = nil
  @author = nil
  @committer = nil
  @message = nil
  if init
    set_commit(init)
  end
end