Re: Add support for `git rebase -no-edit`
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 11, 2024, 21:30 UTC
- Message-ID
- <xmqq4jfjftgw.fsf@gitster.g>
- In-Reply-To
- <CADA7-FOE_81ze8hdaRGLPbipihnvFcEYfp9uwnPxPVxDepG4nA@mail.gmail.com>
Chaitanya Tata <chaitanya.tk17@gmail.com> writes:
Show 14 quoted lines
> Hi, > > I have a feature request to add `--no-edit` option to `git rebase` > like we do for `git commit`. > The workflow I typically follow is: > > * `git commit -a --fixup=XXX` > * `git rebase -i HEAD~15 --autosquash` > > But it requires closing the editor without any changes. I can > workaround this using the `GIT_EDITOR` option, see [1]. But it would > be good to have this built-in. > > Thoughts?
With what is in the 'master' branch, you do not have to say interactive when you do not want to go interactive. I.e.
$ git rebase --autosquash HEAD~15
should work fine. Building Git from the source should not be too hard.
By the way, make it a habit to pass non-option argument after dashed options. It is easier for your readers to understand your command line that way.
Thanks.