╭ changed ───╮ │src/fork.zig│ ╰────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────╮ │1 const std = @import("std"); │ │2 const evt = @import("event.zig"); │ │3 const find = @import("find.zig"); │ │4 +const cms = @import("search_commit.zig");│ │5 const xit = @import("xit"); │ │6 const rp = xit.repo; │ │7 const hash = xit.hash; │ ╰────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │139 │ │140 _ = try moment.remove(hash.hashInt(repo_opts.hash, evt.history_key)); │ │141 _ = try moment.remove(hash.hashInt(repo_opts.hash, evt.last_object_id_key)); │ │142 + // forks aren't searched, so the copied versions would linger │ │143 + // with nothing to prune them │ │144 + _ = try moment.remove(hash.hashInt(repo_opts.hash, cms.index_key)); │ │145 │ │146 if (head_oid_maybe) |*head_oid| { │ │147 try rf.write(.xit, repo_opts, state, ctx.io, patch_path, .{ .oid = head_oid });│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯