╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ event.zig ────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
2149 } 2150 } 2151 } 2152 2153 fn readOidFromList(list: DB.ArrayList(.read_only), index: u64) ![hash.byteLen(repo_opts.hash)]u8 { 2154 const oid_cursor = try list.getCursor(index) orelse return error.CursorNotFound; 2155 var oid: [hash.byteLen(repo_opts.hash)]u8 = undefined; 2156 _ = try oid_cursor.readBytes(&oid); 2157 return oid; 2158 } 2159 }; 2160 } 2161