MCPcopy Create free account
hub / github.com/creationix/git-browser / wrap

Function wrap

src/old/git-webfs.js:32–38  ·  view source on GitHub ↗
(fn, two)

Source from the content-addressed store, hash-verified

30 return exports;
31
32 function wrap(fn, two) {
33 return function () {
34 arguments[0] = pathJoin(root, pathJoin("/", arguments[0]));
35 if (two) arguments[1] = pathJoin(root, pathJoin("/", arguments[1]));
36 return fn.apply(this, arguments);
37 };
38 }
39 }
40
41 // Given a path, return a continuable for the stat object.

Callers 2

chrootFunction · 0.85
grab.jsFile · 0.85

Calls 1

pathJoinFunction · 0.85

Tested by

no test coverage detected