╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ PatchRev.zig ─────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
213 _ = arena.reset(.retain_capacity); 214 const id = try evt.readOrderKeyId(DB, cursor); 215 const record = (try readById(DB, hash_kind, haxy_moment, &arena, &id)) orelse continue; 216 var oid: [hash.hexLen(hash_kind)]u8 = undefined; 217 if (record.patch_oid.len != oid.len) return error.InvalidOid; 218 @memcpy(&oid, record.patch_oid); 219 try roots.append(allocator, oid); 220 } 221 222 return try roots.toOwnedSlice(allocator); 223 } 224