Relationships
#1708 @swamp/git: add a read-only working-tree diff for pre-commit review
Opened by jeremy · 8/18/2026· Shipped 8/31/2026
@swamp/git diff is documented and implemented as ref-to-ref: required base plus defaulted head invokes git diff base head. A manual-approval workflow needs to review an uncommitted candidate before staging or commit. status identifies modified and untracked paths but has no patch, and a normal tracked diff excludes untracked files. Please add a distinct read-only worktree_diff method rather than change diff semantics. It should compare a supplied base or HEAD with the working tree; include staged, unstaged, and untracked non-ignored paths; support nameOnly, stat, and path filters; return structured changed paths and reviewable patch or content; and make no index, worktree, or network mutation. A workflow-lifetime result would preserve the reviewed evidence at a manual gate.
Upstream repository: https://github.com/swamp-club/swamp-extensions
Environment
- Extension:
@swamp/git@2026.08.13.1 - swamp:
20260818.015459.0-sha.7d509529 - OS:
linux(x86_64) - Deno:
2.8.3 - Shell:
/bin/bash
Shipped
Click a lifecycle step above to view its details.
Sign in to post a ripple.