Class Git::Object::AbstractObject
In: lib/git/object.rb
Parent: Object

Methods

archive   blob?   commit?   contents   contents_array   diff   grep   log   new   sha   size   tag?   to_s   tree?  

Attributes

mode  [RW] 
objectish  [RW] 
size  [RW] 
type  [RW] 

Public Class methods

Public Instance methods

creates an archive of this object (tree)

Get the object‘s contents. If no block is given, the contents are cached in memory and returned as a string. If a block is given, it yields an IO object (via IO::popen) which could be used to read a large file in chunks.

Use this for large files so that they are not held in memory.

[Validate]