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

Method getBlob

lib/Repository.js:151–153  ·  view source on GitHub ↗

* Get a raw blob from the repository * @see https://developer.github.com/v3/git/blobs/#get-a-blob * @param {string} sha - the sha of the blob to fetch * @param {Requestable.callback} cb - will receive the blob from the API * @return {Promise} - the promise for the http request

(sha, cb)

Source from the content-addressed store, hash-verified

149 * @return {Promise} - the promise for the http request
150 */
151 getBlob(sha, cb) {
152 return this._request('GET', `/repos/${this.__fullname}/git/blobs/${sha}`, null, cb, 'raw');
153 }
154
155 /**
156 * Get a single branch

Callers 1

repository.spec.jsFile · 0.80

Calls 1

_requestMethod · 0.80

Tested by

no test coverage detected