MCPcopy Index your code
hub / github.com/kpdecker/jsdiff / loadFile

Function loadFile

test/patch/apply.js:1680–1682  ·  view source on GitHub ↗
(index, callback)

Source from the content-addressed store, hash-verified

1678
1679 applyPatches(patch, {
1680 loadFile(index, callback) {
1681 callback(undefined, contents[index.index]);
1682 },
1683 patched(index, content, callback) {
1684 callback(expected);
1685 },

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected