╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────╮ │367 // │ │368 │ │369 { │ │367 - try evt.consume(repo_opts, io, allocator, &repo, .{ .kind = .head, .name = "haxy/meta" });│ │370 + try evt.consume(repo_opts, io, allocator, &repo, evt.events_ref); │ │371 │ │372 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │373 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │440 _ = try repo.commitAtRef( │ │441 io, │ │442 allocator, │ │440 - // make the first commit a child of the first commit on the haxy/meta branch │ │443 + // make the first commit a child of the first commit on the events branch │ │444 .{ .parent_oids = if (i == 0) &.{std.fmt.bytesToHex(first_oid, .lower)} else null, .message = json.written() },│ │445 null, │ │443 - .{ .kind = .head, .name = "haxy/other" }, │ │446 + other_events_ref, │ │447 ); │ │448 } │ │449 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │450 │ │451 // │ │449 - // check out the haxy/meta branch and merge the haxy/other branch into it│ │452 + // check out the events branch and merge the other events branch into it │ │453 // │ │454 │ │455 const merge_oid = blk: { │ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │453 - var result = try repo.switchDir(io, allocator, .{ .target = .{ .ref = .{ .kind = .head, .name = "haxy/meta" } } }); │ │456 + var result = try repo.switchDir(io, allocator, .{ .target = .{ .ref = evt.events_ref } }); │ │457 defer result.deinit(); │ │458 │ │456 - var merge = try repo.merge(io, allocator, .{ .kind = .full, .action = .{ .new = .{ .source = &.{.{ .ref = .{ .kind = .head, .name = "haxy/other" } }} } } }, null);│ │459 + var merge = try repo.merge(io, allocator, .{ .kind = .full, .action = .{ .new = .{ .source = &.{.{ .ref = other_events_ref }} } } }, null); │ │460 defer merge.deinit(); │ │461 │ │462 try std.testing.expect(.success == merge.result); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────╮ │469 // │ │470 │ │471 { │ │469 - try evt.consume(repo_opts, io, allocator, &repo, .{ .kind = .head, .name = "haxy/meta" });│ │472 + try evt.consume(repo_opts, io, allocator, &repo, evt.events_ref); │ │473 │ │474 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │475 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────╮ │549 // undoing the merge that we did above │ │550 .{ .parent_oids = if (i == 0) &.{} else null, .message = json.written() },│ │551 null, │ │549 - .{ .kind = .head, .name = "haxy/meta" }, │ │552 + evt.events_ref, │ │553 ); │ │554 } │ │555 } │ ╰───────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────╮ │559 // │ │560 │ │561 { │ │559 - try evt.consume(repo_opts, io, allocator, &repo, .{ .kind = .head, .name = "haxy/meta" });│ │562 + try evt.consume(repo_opts, io, allocator, &repo, evt.events_ref); │ │563 │ │564 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │565 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │623 allocator, │ │624 .{ .parent_oids = &.{merge_oid}, .message = json.written() },│ │625 null, │ │623 - .{ .kind = .head, .name = switch (i) { │ │624 - 0 => "haxy/meta", │ │625 - 1 => "haxy/other", │ │626 + switch (i) { │ │627 + 0 => evt.events_ref, │ │628 + 1 => other_events_ref, │ │629 else => unreachable, │ │627 - } }, │ │630 + }, │ │631 ); │ │632 } │ │633 } │ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │634 │ │635 // │ │633 - // check out the haxy/meta branch and merge the haxy/other branch into it│ │636 + // check out the events branch and merge the other events branch into it │ │637 // │ │638 │ │639 { │ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │637 - var result = try repo.switchDir(io, allocator, .{ .target = .{ .ref = .{ .kind = .head, .name = "haxy/meta" } } }); │ │640 + var result = try repo.switchDir(io, allocator, .{ .target = .{ .ref = evt.events_ref } }); │ │641 defer result.deinit(); │ │642 │ │640 - var merge = try repo.merge(io, allocator, .{ .kind = .full, .action = .{ .new = .{ .source = &.{.{ .ref = .{ .kind = .head, .name = "haxy/other" } }} } } }, null);│ │643 + var merge = try repo.merge(io, allocator, .{ .kind = .full, .action = .{ .new = .{ .source = &.{.{ .ref = other_events_ref }} } } }, null); │ │644 defer merge.deinit(); │ │645 │ │646 try std.testing.expect(.success == merge.result); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯