git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Add support for `git rebase -no-edit`

From
Taylor Blau <me@ttaylorr.com>
Date
Jan 11, 2024, 21:42 UTC
Message-ID
<ZaBgqlR5F1dv9ttg@nand.local>
In-Reply-To
<xmqq4jfjftgw.fsf@gitster.g>
On Thu, Jan 11, 2024 at 01:30:55PM -0800, Junio C Hamano wrote:
Show 24 quoted lines
> 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.

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, Taylor

Previous: Junio C HamanoNext: Chaitanya Tata
Message 5 of 6 in “Add support for `git rebase -no-edit`”
  1. Chaitanya TataJan 11, 2024
  2. Taylor BlauJan 11, 2024
  3. Chaitanya TataJan 11, 2024
  4. Junio C HamanoJan 11, 2024
  5. Taylor BlauJan 11, 2024
  6. Chaitanya TataJan 11, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.