lib/gitlab/client/repositories.rb in gitlab-4.12.0 vs lib/gitlab/client/repositories.rb in gitlab-4.13.0
- old
+ new
@@ -11,10 +11,11 @@
# Gitlab.tree(42, { path: 'Gemfile' })
#
# @param [Integer, String] project The ID or name of a project.
# @param [Hash] options A customizable set of options.
# @option options [String] :path The path inside repository.
- # @option options [String] :ref_name The name of a repository branch or tag.
+ # @option options [String] :ref The name of a repository branch or tag.
+ # @option options [Integer] :per_page Number of results to show per page (default = 20)
# @return [Gitlab::ObjectifiedHash]
def tree(project, options = {})
get("/projects/#{url_encode project}/repository/tree", query: options)
end
alias repo_tree tree