in lib/grit/git-ruby.rb [234:249]
def looking_for(commit, path = nil)
tree_sha = ruby_git.get_subtree(rev_parse({}, commit), path)
looking_for = []
ruby_git.get_object_by_sha1(tree_sha).entry.each do |e|
if path && !(path == '' || path == '.' || path == './')
file = File.join(path, e.name)
else
file = e.name
end
file += '/' if e.type == :directory
looking_for << file
end
looking_for
end