sx-git Phase 4: worktree — tree materialization, index overlay, status (TDD)

Worktree is a value (path->data dict). tree-from-files/tree-files round-trip
through real tree objects (cid-identical to hand-built trees); index =
{:base tree-cid :staged overlay} in kv with add!/rm!/unstage!/index-tree!;
status = three-way dict diff (HEAD vs index vs worktree) with
staged/unstaged/untracked. 26/26, total 132/132.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-03 12:11:04 +00:00
parent eda6806989
commit 125d9f1398
5 changed files with 495 additions and 5 deletions

View File

@@ -2,9 +2,10 @@
"suites": {
"object": {"pass": 38, "fail": 0},
"ref": {"pass": 38, "fail": 0},
"dag": {"pass": 30, "fail": 0}
"dag": {"pass": 30, "fail": 0},
"worktree": {"pass": 26, "fail": 0}
},
"total_pass": 106,
"total_pass": 132,
"total_fail": 0,
"total": 106
"total": 132
}