Skip to content

T1: Hoist ignore/unignore marking internals into verb-agnostic shared impls#321

Merged
philcunliffe merged 1 commit into
integration/hyp-policy-verbfrom
task/hyp-policy-verb/T1
Jul 17, 2026
Merged

T1: Hoist ignore/unignore marking internals into verb-agnostic shared impls#321
philcunliffe merged 1 commit into
integration/hyp-policy-verbfrom
task/hyp-policy-verb/T1

Conversation

@philcunliffe

Copy link
Copy Markdown
Contributor

Implements task T1 of hyp-policy-verb (LLP 0112).

Hoists runMarkMachineLocal, runUnmarkMachineLocal, and runIgnoreCheck in
src/core/commands/clients.js out of the --private/--local-only/--sync/
--check flag branches into verb-agnostic shared implementations that take
an explicit resolved targetDir (via a new shared repoRootDefaultTarget
placement rule), a class, and the output writer (ctx), instead of
computing the target from parsed argv internally.

Pure refactor, zero behavior change: runIgnore/runUnignore resolve the
target the same way as before and delegate; stdout/stderr/exit codes are
unchanged. All existing ignore/unignore tests pass unmodified. Carries the
existing @ref LLP 0103#cli annotations along with the moved code; gloss
updates land in T6 per the plan.

Task-Id: T1

Extract runMarkMachineLocal, runUnmarkMachineLocal, and runIgnoreCheck in
src/core/commands/clients.js so they take an explicit resolved targetDir
instead of computing it from parsed argv, and add repoRootDefaultTarget as
the one shared repo-root-default placement rule. This is a pure refactor
with zero behavior change: the flag branches in runIgnore/runUnignore now
resolve the target and delegate, but stdout/stderr/exit codes are unchanged,
so all existing ignore/unignore tests pass unmodified. This sets up both
the flag forms and the future hyp policy runners (LLP 0112 T2) to call one
implementation instead of drifting. Carries the existing @ref LLP 0103#cli
annotations along with the moved code; gloss updates come in T6.

Task-Id: T1
@philcunliffe
philcunliffe merged commit 9089064 into integration/hyp-policy-verb Jul 17, 2026
4 checks passed
@philcunliffe
philcunliffe deleted the task/hyp-policy-verb/T1 branch July 17, 2026 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant