Method: Grit::Repo#objects
- Defined in:
- lib/grit/repo.rb
#objects(refs) ⇒ Object
444 445 446 447 448 |
# File 'lib/grit/repo.rb', line 444 def objects(refs) refs = refs.split(/\s+/) if refs.respond_to?(:to_str) self.git.rev_list({:objects => true, :timeout => false}, *refs). split("\n").map { |a| a[0, 40] } end |