class Git::Base

def grep(string, path_limiter = nil, opts = {})

end
end
puts "\t line #{match[0]}: '#{match[1]}'"
arr.each do |match|
puts "in blob #{sha}:"
@git.grep("TODO").each do |sha, arr|

so you might use it like this:

hsh[tree-ish] = [[line_no, match], [line_no, match2]]
hsh[tree-ish] = [[line_no, match], [line_no, match2]]
in any case, it returns a hash of arrays of the type:

@git.object("v2.3").grep('TODO')

git object. for example:
to be more surgical in your grep, you can call grep() off a specific

will run a grep for 'string' on the HEAD of the git repository
def grep(string, path_limiter = nil, opts = {})
  self.object('HEAD').grep(string, path_limiter, opts)
end