MCPcopy
hub / github.com/creationix/js-git / hasHash

Function hasHash

mixins/mem-db.js:47–52  ·  view source on GitHub ↗
(hash, callback)

Source from the content-addressed store, hash-verified

45 }
46
47 function hasHash(hash, callback) {
48 return makeAsync(function () {
49 if (!isHash.test(hash)) hash = refs[hash];
50 return hash in objects;
51 }, callback);
52 }
53
54 function saveAs(type, body, callback) {
55 return makeAsync(function () {

Callers

nothing calls this directly

Calls 1

makeAsyncFunction · 0.85

Tested by

no test coverage detected