class Github::GitData::References

def get(user_name, repo_name, ref, params={})


github.git_data.references.get 'user-name', 'repo-name', 'reference'
github = Github.new
= Examples

heads/sc/featureA
branch named sc/featureA would be formatted as
not just branch. For example, the call to get the data for a
The ref in the URL must be formatted as heads/branch,

Get a reference
def get(user_name, repo_name, ref, params={})
  _update_user_repo_params(user_name, repo_name)
  _validate_user_repo_params(user, repo) unless user? && repo?
  _validate_presence_of ref
  _validate_reference ref
  _normalize_params_keys params
  get_request("/repos/#{user}/#{repo}/git/refs/#{ref}", params)
end