sx-git extension: git-wire export adapter — byte-exact loose objects + SHA-1 (TDD)
lib/git/sha1.sx: SHA-1 in pure SX over host bitwise prims (FIPS vectors + multi-block verified). lib/git/export.sx: native objects -> git payloads "<type> <len>\0<body>" with real git identity, golden-verified against git CLI (hash-object/mktree/commit-tree/mktag with pinned idents): tree entry sorting with dirs keyed "name/", raw 20-byte child shas, "40000" subtree mode, :mode overrides, deterministic ident defaults, trailing-newline message rule. export-closure/export-set emit a host-writable object table. Adapter-at-the-edge: native model untouched; zlib/packfiles remain host-side concerns. 25/25, total 252/252. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,4 +11,5 @@ _Generated by `lib/git/conformance.sh`_
|
||||
| diff | 27 | 0 | 27 |
|
||||
| merge | 28 | 0 | 28 |
|
||||
| porcelain | 40 | 0 | 40 |
|
||||
| **Total** | **227** | **0** | **227** |
|
||||
| export | 25 | 0 | 25 |
|
||||
| **Total** | **252** | **0** | **252** |
|
||||
|
||||
Reference in New Issue
Block a user