Re: Add support for `git rebase -no-edit`
- From
- Chaitanya Tata <chaitanya.tk17@gmail.com>
- Date
- Jan 11, 2024, 21:46 UTC
- Message-ID
- <CADA7-FPFb5vmcT+9drdo=bYnixisvMiBqC5x8dPvFt61+FjsVw@mail.gmail.com>
- In-Reply-To
- <ZaBgqlR5F1dv9ttg@nand.local>
On Fri, Jan 12, 2024 at 3:12 AM Taylor Blau <me@ttaylorr.com> wrote:
Show 26 quoted lines
> > On Thu, Jan 11, 2024 at 01:30:55PM -0800, Junio C Hamano wrote: > > Chaitanya Tata <chaitanya.tk17@gmail.com> writes: > > > > > 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.
Amazing, exactly what I need. And or arg order, I just typed in the command, I typically use aliases that are in the proper order, but thanks.
> > Oh, duh. Indeed, 297be59456 (rebase: support --autosquash without -i, > 2023-11-14) will do what Chaitanya is looking for. I'll give myself pass > on remembering that patch since it is from last year ;-).
:).
Thanks both for prompt support, I will compile and test this.