MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / rebaseHist

Function rebaseHist

static/js/codemirror/codemirror.js:4806–4810  ·  view source on GitHub ↗
(hist, change)

Source from the content-addressed store, hash-verified

4804 }
4805
4806 function rebaseHist(hist, change) {
4807 var from = change.from.line, to = change.to.line, diff = change.text.length - (to - from) - 1;
4808 rebaseHistArray(hist.done, from, to, diff);
4809 rebaseHistArray(hist.undone, from, to, diff);
4810 }
4811
4812 // EVENT OPERATORS
4813

Callers 2

makeChangeNoReadonlyFunction · 0.85
makeChangeFromHistoryFunction · 0.85

Calls 1

rebaseHistArrayFunction · 0.85

Tested by

no test coverage detected