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

Function updateRef

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

Source from the content-addressed store, hash-verified

39 }
40
41 function updateRef(ref, hash, callback) {
42 return makeAsync(function () {
43 return (refs[ref] = hash);
44 }, callback);
45 }
46
47 function hasHash(hash, callback) {
48 return makeAsync(function () {

Callers

nothing calls this directly

Calls 1

makeAsyncFunction · 0.85

Tested by

no test coverage detected