pub fn rebase_ops(
base: &ResearchContextDocumentV1,
ops: &[PatchOpV1],
) -> Result<Vec<PatchOpV1>, String>Expand description
Re-apply draft ops onto a newer base, dropping ops the base already contains (the same fact was merged meanwhile). Ops that clash with the new base are an error; the caller then keeps the draft on its old base.