Versions 178 to 318
Lines 1–7 at 318 (were 1–6 at 178)
45
Lines 31–51 at 318 (were 30–43 at 178)
33− put(type: string, produce: (write: (bytes: Uint8Array) => void) => void, maxBytes: number): StoredGitBytes {
3541 if (!["blob", "tree", "commit", "tag"].includes(type) || !Number.isSafeInteger(maxBytes) || maxBytes < 0)
46+ if (rawDelta) this.storage.sql.exec("INSERT OR IGNORE INTO git_object_budget VALUES (?, 0)", budgetScope);
40− .exec("SELECT decoded FROM git_object_budget WHERE scope = ?", this.scope)
Lines 64–75 at 318 (were 56–63 at 178)
59− if (length + bytes.length > maxBytes) throw Error("Git object exceeds byte limit");
60− if (length + bytes.length > remaining) throw Error("Git pack exceeds total decoded byte limit");
67+ if (length + bytes.length > maxBytes) throw new GitIntakeLimitError("object", "Git object exceeds byte limit");
71+ rawDelta ? "Git pack exceeds total delta byte limit" : "Git pack exceeds total decoded byte limit",
Lines 90–96 at 318 (were 78–84 at 178)
81− this.storage.sql.exec("UPDATE git_object_budget SET decoded = decoded + ? WHERE scope = ?", length, this.scope);
93+ this.storage.sql.exec("UPDATE git_object_budget SET decoded = decoded + ? WHERE scope = ?", length, budgetScope);
Lines 152–158 at 318 (were 140–146 at 178)
143− this.storage.sql.exec("DELETE FROM git_object_budget WHERE scope = ?", this.scope);
155+ this.storage.sql.exec("DELETE FROM git_object_budget WHERE scope IN (?, ?)", this.scope, `${this.scope}:raw`);
- MCP
- compare on this site's /mcp
- CLI
- abso diff 178 318 server/src/git-object-bytes.ts --json
- JSON
- /christopher/abso-core/compare/178..318?file=server%2Fsrc%2Fgit-object-bytes.ts&format=json