Commit 3859b3b
committed
fix(commit): preserve context and skip-confirm flag across regenerate
When the user answers "No" at the confirmation prompt and chooses to
regenerate, the recursive call to generateCommitMessageFromGitDiff
forwarded only `diff`, `extraArgs`, and `fullGitMojiSpec`. Both
`context` and `skipCommitConfirmation` were silently dropped, so:
- `-c/--context` was honored only on the first attempt and lost on
every regeneration;
- `-y/--yes` was honored only on the first attempt, forcing a manual
confirmation after regeneration.
Forward both fields through the recursive call so the user's flags
are respected for the full lifetime of the commit() invocation.1 parent 0239d5b commit 3859b3b
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
| |||
0 commit comments