pub fn commit(target: &Path, body: &str, original: &str) -> Result<(), String>
Write the rewritten save file over the target, atomically, refusing anything that lost lines.