Versions 39 to 318
new file, 61 lines
3+import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
7+
24+const installed = Object.fromEntries(Object.keys(original).map((file) => [file, readFileSync(join(root, file))]));
29+if (process.argv.includes("--check")) throw Error("Complete Git capacity runtime patch is absent or modified");
31+ if (hash(installed[file]) !== digest) throw Error(`Unrecognized or partially patched Git bundle: ${file}`);
34+if (dirname(resolve(temporary)) !== resolve(tmpdir()) || !basename(temporary).startsWith("abso-git-patch-"))
40+ for (const [file, bytes] of Object.entries(installed)) writeFileSync(join(staged, file), bytes);
41+ copyFileSync(join(scripts, "capacity-git-bounded-fifo.mjs"), join(temporary, "capacity-git-bounded-fifo.mjs"));
48+ const outputs = Object.fromEntries(Object.keys(expected).map((file) => [file, readFileSync(join(staged, file))]));
- MCP
- compare on this site's /mcp
- CLI
- abso diff 39 318 server/scripts/capacity-install-git-runtime.mjs --json
- JSON
- /christopher/abso-core/compare/39..318?file=server%2Fscripts%2Fcapacity-install-git-runtime.mjs&format=json