def get(*args)
      arguments(args, required: [:user, :repo, :sha])
      user   = arguments.user
      repo   = arguments.repo
      sha    = arguments.sha
      params = arguments.params

      response = if params['recursive']
        params['recursive'] = 1
        get_request("/repos/#{user}/#{repo}/git/trees/#{sha}", params)
      else
        get_request("/repos/#{user}/#{repo}/git/trees/#{sha.to_s}", params)
      end
      return response unless block_given?
      response.tree.each { |el| yield el }
    end
def get(*args)
      arguments(args, required: [:user, :repo, :sha])
      user   = arguments.user
      repo   = arguments.repo
      sha    = arguments.sha
      params = arguments.params

      response = if params['recursive']
        params['recursive'] = 1
        get_request("/repos/#{user}/#{repo}/git/trees/#{sha}", params)
      else
        get_request("/repos/#{user}/#{repo}/git/trees/#{sha.to_s}", params)
      end
      return response unless block_given?
      response.tree.each { |el| yield el }
    end
Get a tree

 @example
  github = Github.new
  github.git_data.trees.get 'user-name', 'repo-name', 'sha'
  github.git_data.trees.get 'user-name', 'repo-name', 'sha' do |file|
    file.path
  end

 Get a tree recursively

 @example
  github = Github.new
  github.git_data.trees.get 'user-name', 'repo-name', 'sha', recursive: true

 @api public