╭ changed ───╮ │src/push.zig│ ╰────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────╮ │70 try xit.patch.writePatches(repo_opts, state, io, allocator, &iter, &progress);│ │71 } │ │72 │ │73 -fn writeUndo( │ │73 +// the action a received push records │ │74 +pub const undo_action = "haxy/push"; │ │75 + │ │76 +// the fixture records a stand-in push with this too, so both write one shape │ │77 +pub fn writeUndo( │ │78 comptime repo_opts: rp.RepoOpts(.xit), │ │79 state: rp.Repo(.xit, repo_opts).State(.read_write), │ │80 io: std.Io, │ ╰──────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │88 defer author_json.deinit(allocator); │ │89 var payload: std.json.ObjectMap = try .init(allocator, &.{"author"}, &.{if (author != null) .{ .object = author_json } else .null}); │ │90 defer payload.deinit(allocator); │ │87 - try xit.undo.write(repo_opts, state, std.Io.Timestamp.now(io, .real).toSeconds(), .{ .custom = .{ .action = "push", .payload = payload } }); │ │91 + try xit.undo.write(repo_opts, state, std.Io.Timestamp.now(io, .real).toSeconds(), .{ .custom = .{ .action = undo_action, .payload = payload } });│ │92 } │ │93 │ │94 // serve a receive-pack and consume any events it pushed to the events branch, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯