You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Use when worktree setup is suggested in this repository, when a workflow references using-git-worktrees, or when Git actions must stay under the project-local git rules instead of the superpowers worktree flow.
Incremental deploy planning only compared the current workspace against `HEAD`, so users could not choose an earlier Git commit hash as the baseline when calculating deployment deltas for `plan` and `deploy`.
11
+
12
+
## Actions / Outcome
13
+
- Approach 1: Review the existing incremental flow in CLI, gitdiff, planner, README, and tests -> confirmed the feature boundary only needed CLI argument plumbing plus gitdiff parameterization.
14
+
- Approach 2: Add regression tests first for custom base refs, CLI forwarding, full-mode rejection, and README coverage -> established the missing behavior and protected backward compatibility.
15
+
- Final approach: Add `--base` to `plan/deploy`, pass it into `collect_git_changes(base_ref=...)`, keep default `HEAD` behavior when omitted, reject `--base` in `full` mode, and document the new flag in README -> supports comparing a chosen base commit against the current workspace without changing planner semantics.
16
+
17
+
## Lessons / Refinements
18
+
- Extending a narrow boundary (`gitdiff`) is safer than threading base-commit semantics through planner and executor layers that do not need to know about Git.
19
+
- CLI argument additions should be paired with README token assertions so command help drift is caught early.
0 commit comments