MCPcopy Create free account
hub / github.com/bigcode-project/jupytercoder / processIndex

Function processIndex

src/diff.js:898–919  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

896 var currentIndex = 0;
897
898 function processIndex() {
899 var index = uniDiff[currentIndex++];
900
901 if (!index) {
902 return options.complete();
903 }
904
905 options.loadFile(index, function (err, data) {
906 if (err) {
907 return options.complete(err);
908 }
909
910 var updatedContent = applyPatch(data, index, options);
911 options.patched(index, updatedContent, function (err) {
912 if (err) {
913 return options.complete(err);
914 }
915
916 processIndex();
917 });
918 });
919 }
920
921 processIndex();
922 }

Callers 1

applyPatchesFunction · 0.85

Calls 1

applyPatchFunction · 0.85

Tested by

no test coverage detected