# depends on GitRepository, GetCommit, GetObject
# returns the contents (files and subfolders) of a folder
path ||= '/'
if !rugged_commit && path.empty?
[]
else
end
end
# iterates over all files in the repository, passing the filepath and the oid of the last change to the block
end
case entry.type
end
end
end
contents = []
contents << GitRepository::Files::GitFile.new(self, rugged_commit, filepath)
end
tree.each_blob do |file|
filepath = [path, file[:name]].select(&:present?).compact.join('/')
contents << GitRepository::Files::GitFile.new(self, rugged_commit, filepath)
end
end
contents
end
end