Skip to content

Support git autosquash amend! prefix in commit message task#1224

Merged
veewee merged 1 commit into
phpro:v2.xfrom
reynkonig:feature/commit-message-amend-prefix
Jun 19, 2026
Merged

Support git autosquash amend! prefix in commit message task#1224
veewee merged 1 commit into
phpro:v2.xfrom
reynkonig:feature/commit-message-amend-prefix

Conversation

@reynkonig

Copy link
Copy Markdown
Contributor
Q A
Branch v2.x
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Documented? no
Fixed tickets no

git commit --fixup=amend: / --fixup=reword: produce an amend! … subject (sibling of fixup!/squash!), but amend! was missing from the three spots those prefixes are special-cased, so amend commits were rejected. Adds amend - centralized into one constant - with unit tests mirroring the existing fixup/squash cases.

`git commit --fixup=amend:` / `--fixup=reword:` produce an `amend! …`
subject, the sibling of `fixup!`/`squash!`. These were special-cased in
three places but `amend!` was missing from all of them, so amend commits
were rejected. Centralize the prefixes into one constant and add `amend`.
@veewee veewee merged commit ccf187b into phpro:v2.x Jun 19, 2026
25 of 26 checks passed
@veewee

veewee commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants