in lib/rugged_adapter/git_layer_rugged.rb [241:253]
def ls_files(query, options = {})
ref = options[:ref] || "refs/heads/master"
tree = @repo.lookup(sha_from_ref(ref)).tree
tree = @repo.lookup(tree[options[:path]][:oid]) if options[:path]
results = []
tree.walk_blobs do |root, blob|
next unless blob[:name] =~ /
path = options[:path] ? ::File.join(options[:path], root, blob[:name]) : "#{root}#{blob[:name]}"
results << path
end
results
end