class Github::GitData::References
def get(*args)
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(*args) arguments(args, :required => [:user, :repo, :ref]) validate_reference ref params = arguments.params get_request("/repos/#{user}/#{repo}/git/refs/#{ref}", params) end