MCPcopy Index your code
hub / github.com/isomorphic-git/isomorphic-git / acquireLock

Function acquireLock

src/utils/walkerToTreeEntryMap.js:25–28  ·  view source on GitHub ↗
(ref, callback)

Source from the content-addressed store, hash-verified

23
24let lock
25export async function acquireLock(ref, callback) {
26 if (lock === undefined) lock = new AsyncLock()
27 return lock.acquire(ref, callback)
28}
29
30// make sure filepath, blob type and blob object (from loose objects) plus oid are in sync and valid
31async function checkAndWriteBlob(fs, gitdir, dir, filepath, oid = null) {

Callers 2

checkAndWriteBlobFunction · 0.70
applyTreeChangesFunction · 0.70

Calls 1

acquireMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…