╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ event.zig ────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
1225 1226 if (pending_parent_count <= 1) { 1227 _ = try self.child_to_pending_parents.remove(child_oid_int); 1228 const child_oid = hash.intToBytes(hash.HashInt(repo_opts.hash), child_oid_int); 1229 try self.ready_queue.append(.{ .bytes = &child_oid }); 1230 } else { 1231 try self.child_to_pending_parents.put(child_oid_int, .{ .uint = pending_parent_count - 1 }); 1232 } 1233 } 1234 } 1235 1236 fn readOidFromList(list: DB.ArrayList(.read_only), index: u64) ![hash.byteLen(repo_opts.hash)]u8 { 1237 const oid_cursor = try list.getCursor(index) orelse return error.CursorNotFound; 1238 var oid: [hash.byteLen(repo_opts.hash)]u8 = undefined; 1239 _ = try oid_cursor.readBytes(&oid); 1240 return oid; 1241 } 1242 }; 1243 } 1244