Method: Git::Base#object
- Defined in:
- lib/git/base.rb
#object(objectish) ⇒ Object
returns a Git::Object of the appropriate type you can also call @git.gtree(‘tree’), but that’s just for readability. If you call @git.gtree(‘HEAD’) it will still return a Git::Object::Commit object.
on the objectish and determine the type of the object and return an appropriate object for that type
165 166 167 |
# File 'lib/git/base.rb', line 165 def object(objectish) Git::Object.new(self, objectish) end |