T-J2G1-lib-util-git-ts-s-worktree-detection-helpers-derive-from
State: closed/done · Impact: low · Complexity: small
From the Phase-4 audit’s recommended task list
(docs/planning/notes/N-OCUK-2026-09-24-sdlc-1-0-audit.md, on origin/sdlc/p4-audit):
lib/util/git.ts’s worktree-detection helpers: derive from @sksizer/easy-git’s
mainCheckoutFrom/worktrees(), or document the divergence.
| Area | Note |
|---|---|
lib/util/ | git.ts worktree-detection helpers |
Acceptance criteria
Section titled “Acceptance criteria”- AC-1: git.ts’s worktree-detection helpers call @sksizer/easy-git’s mainCheckoutFrom/worktrees(), or a reviewed code comment documents exactly why the independent scan must remain.
- AC-2: Existing tests covering worktree detection still pass.
Out of scope
Section titled “Out of scope”- none
Dependencies
Section titled “Dependencies”- none