class Github::GitData::References

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


github.git_data.references.get 'user-name', 'repo-name', 'heads/branch'
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={})
  set :user => user_name, :repo => repo_name
  assert_presence_of user, repo, ref
  validate_reference ref
  normalize! params
  get_request("/repos/#{user}/#{repo}/git/refs/#{ref}", params)
end