Re: [PATCH 0/2] rebase: add --fixup to fold a range into its oldest commit
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 15, 2026, 02:01 UTC
- Message-ID
- <xmqqqzm8d0j7.fsf@gitster.g>
- In-Reply-To
- <pull.2337.git.git.1781465141.gitgitgadget@gmail.com>
"Harald Nordgren via GitGitGadget" <gitgitgadget@gmail.com> writes:
> Adds git rebase --autosquash --fixup [<upstream>] to fold a range of commits > into its oldest one, reusing that commit's message.
[2/2] seems to add "--fixup-all" but I agree with the "related idea" that naming it and modelling it after "merge --squash" would be easier to understand.
> Related idea: https://github.com/gitgitgadget/git/issues/1135
I also wonder if we can do something like this without adding any new option or command. E.g., if you have four patch series, where the initial implementation HEAD~3 is followed by "oops it was still wrong" fix-up HEAD~2, HEAD~1 and HEAD, then
git reset --soft HEAD~3 && git commit --amend --no-edit
is what the user wants to do, no?