╭ changed ───╮ │src/fork.zig│ ╰────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────╮ │10 │ │11 pub const ref = rf.Ref{ .kind = .head, .name = "patch" };│ │12 │ │13 +// the action creating a fork records │ │14 +pub const undo_action = "haxy/fork"; │ │15 + │ │16 pub const Route = struct { │ │17 identity: []const u8, │ │18 id: [evt.event_id_size * 2]u8, │ ╰─────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │152 try bch.add(.xit, repo_opts, state, ctx.io, .{ .name = ref.name, .target = .none }); │ │153 } │ │154 try rf.replaceHead(.xit, repo_opts, state, ctx.io, .{ .ref = ref }); │ │152 - try xit.undo.write(repo_opts, state, std.Io.Timestamp.now(ctx.io, .real).toSeconds(), .{ .custom = .{ .action = "create_fork" } });│ │155 + try xit.undo.write(repo_opts, state, std.Io.Timestamp.now(ctx.io, .real).toSeconds(), .{ .custom = .{ .action = undo_action } }); │ │156 } │ │157 }; │ │158 │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯