MCPcopy Index your code
hub / github.com/github-tools/github / getRef

Method getRef

lib/Repository.js:42–44  ·  view source on GitHub ↗

* Get a reference * @see https://developer.github.com/v3/git/refs/#get-a-reference * @param {string} ref - the reference to get * @param {Requestable.callback} [cb] - will receive the reference's refSpec or a list of refSpecs that match `ref` * @return {Promise} - the promise for the

(ref, cb)

Source from the content-addressed store, hash-verified

40 * @return {Promise} - the promise for the http request
41 */
42 getRef(ref, cb) {
43 return this._request('GET', `/repos/${this.__fullname}/git/refs/${ref}`, null, cb);
44 }
45
46 /**
47 * Create a reference

Callers 3

createBranchMethod · 0.95
moveMethod · 0.95
repository.spec.jsFile · 0.80

Calls 1

_requestMethod · 0.80

Tested by

no test coverage detected