╭ changed ────╮ │src/event.zig│ ╰─────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │121 if (repo_event.parent_oid) |*parent_oid| { │ │122 if (!std.mem.eql(u8, last_object_id, parent_oid)) { │ │123 // the last-object-id does not match the current event's parent id. │ │124 - // this means that a rebase occurred. what we need to do is just │ │125 - // revert the two object-id maps to the state they were in when │ │126 - // parent-oid was consumed. │ │124 + // this means that a rebase occurred. we just need to revert the │ │125 + // object-id maps to the state they were in when parent-oid was consumed. │ │126 │ │127 const object_id_to_tx_id = try DB.HashMap(.read_only).init(object_id_to_tx_id_cursor.readOnly()); │ │128 const tx_id_cursor = try object_id_to_tx_id.getCursor(hash.bytesToInt(hash_kind, parent_oid)) orelse return error.ObjectNotFound;│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │147 // the branch was rebased all the way to the very beginning. │ │148 // we have a repo event with no parent, which means it is now│ │149 // the very first event. all we need to do is set the │ │151 - // object-id->views map to be empty so we can rebuild it. │ │150 + // object-id maps to be empty. │ │151 + try object_id_to_tx_id_cursor.write(.{ .slot = null }); │ │152 try object_id_to_views_cursor.write(.{ .slot = null }); │ │153 } │ │154 } else { │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯