# File lib/grit/ref.rb, line 12 def find_all(repo, options = {}) refs = repo.git.refs(options, prefix) refs.split("\n").map do |ref| name, id = *ref.split(' ') commit = Commit.create(repo, :id => id) self.new(name, commit) end end