Versions 78 to 318
new file, 133 lines
4+
13+ if (!Number.isSafeInteger(maxObjectBytes) || maxObjectBytes < 0) throw Error("invalid object limit");
18+ "CREATE TABLE IF NOT EXISTS git_pack_resolve (scope TEXT, offset INTEGER, raw TEXT, base_offset INTEGER, base_oid TEXT, result TEXT, oid TEXT, depth INTEGER, PRIMARY KEY(scope,offset))",
20+ storage.sql.exec("CREATE INDEX IF NOT EXISTS git_pack_resolve_oid ON git_pack_resolve(scope,oid)");
22+ "CREATE INDEX IF NOT EXISTS git_pack_unresolved ON git_pack_resolve(scope,offset) WHERE result IS NULL",
49+ const stored = this.objects.put(type === "delta" ? "blob" : type, produce, this.maxObjectBytes, type === "delta");
69+ `SELECT p.offset, p.raw, COALESCE(b.result, r.result) AS base, COALESCE(b.depth, r.depth) AS depth
107+ .exec("SELECT offset FROM git_pack_resolve WHERE scope = ? AND result IS NULL LIMIT 1", this.scope)
121+ .exec("SELECT result FROM git_pack_resolve WHERE scope = ? AND oid = ? LIMIT 1", this.scope, oid)
- MCP
- compare on this site's /mcp
- CLI
- abso diff 78 318 server/src/git-pack-resolver.ts --json
- JSON
- /christopher/abso-core/compare/78..318?file=server%2Fsrc%2Fgit-pack-resolver.ts&format=json