MCPcopy Create free account
hub / github.com/TruthHun/BookStack / rebaseHist

Function rebaseHist

static/mergely/lib/codemirror.js:8103–8107  ·  view source on GitHub ↗
(hist, change)

Source from the content-addressed store, hash-verified

8101 }
8102
8103 function rebaseHist(hist, change) {
8104 var from = change.from.line, to = change.to.line, diff = change.text.length - (to - from) - 1;
8105 rebaseHistArray(hist.done, from, to, diff);
8106 rebaseHistArray(hist.undone, from, to, diff);
8107 }
8108
8109 // EVENT UTILITIES
8110

Callers 2

makeChangeInnerFunction · 0.70
makeChangeFromHistoryFunction · 0.70

Calls 1

rebaseHistArrayFunction · 0.70

Tested by

no test coverage detected