Skip to content

refactor(push): replace verb-string sniffing with PushKind enum - #2468

Merged
max-sixty merged 1 commit into
mainfrom
simplifications
Apr 29, 2026
Merged

max-sixty merged 1 commit into
mainfrom
simplifications

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

`handle_push` previously took `verb: &str` and guessed the present participle from a `starts_with("Merged")` prefix check. Replace with an explicit `PushKind { Standalone, MergeFastForward }` carrying both verb forms; the doc comment is also corrected from "gerund" to "present participle."

Also drops a stale YAGNI TODO from `step_diff` proposing a `--stage` flag.

Two callers updated: `main.rs` (standalone push) and `merge.rs` (fast-forward merge path).

`handle_push` previously took `verb: &str` and guessed the present participle
from a `starts_with("Merged")` prefix check. Replace with an explicit
`PushKind { Standalone, MergeFastForward }` carrying both verb forms.

Also drop a stale YAGNI TODO from `step_diff` proposing a `--stage` flag.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit d80ecc4 into main Apr 29, 2026
25 checks passed
@max-sixty
max-sixty deleted the simplifications branch April 29, 2026 17:36
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.

2 participants