represents a git object
if we’re calling this, we don’t know what type it is yet so this is our little factory method
# File lib/git/object.rb, line 253 253: def self.new(base, objectish, type = nil, is_tag = false) 254: if is_tag 255: sha = base.lib.tag_sha(objectish) 256: if sha == '' 257: raise Git::GitTagNameDoesNotExist.new(objectish) 258: end 259: return Git::Object::Tag.new(base, sha, objectish) 260: end 261: 262: type ||= base.lib.object_type(objectish) 263: klass = 264: case type 265: when /blob/ then Blob 266: when /commit/ then Commit 267: when /tree/ then Tree 268: end 269: klass.new(base, objectish) 270: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.