Method: Git::Lib#cat_file_size
- Defined in:
- lib/git/lib.rb
#cat_file_size(object) ⇒ String Also known as: object_size
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Get the size for the given object
474 475 476 477 478 |
# File 'lib/git/lib.rb', line 474 def cat_file_size(object) ('object', object) command('cat-file', '-s', object).to_i end |