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

Re: [RFE] Allow for "interactive"-like actions in non-interactive rebase

From
Emily Shaffer <emilyshaffer@google.com>
Date
May 6, 2019, 20:30 UTC
Message-ID
<20190506203003.GA85211@google.com>
In-Reply-To
<1556895855.30374.0@yandex.ru>
Hi,
On Fri, May 03, 2019 at 06:04:15PM +0300, Konstantin Kharlamov wrote:
Show 9 quoted lines
> Interactive rebase (i.e. for example "git rebase -i HEAD~10") is used most
> often to apply an action to a single commit, e.g. "rename", "edit", "fixup",
> etc…
> 
> As result, people keep coming up with custom scripts and aliases for every
> distinct action.
> 
> Instead, it would be nice to have native support in git to start "rebase"
> for a given commit, and pass the "interactive action" to use on that commit.

I would totally use this. The equivalent workflow right now is a pretty large number of steps for, say, fixing a typo.

Show 5 quoted lines
> Examples:
> 
> $ git rebase -i HEAD~10 --action edit
> $ git rebase -i HEAD~10 --action rename
> $ git rebase -i HEAD~10 --action fixup

Is there an alternative to any of these actions that can already be taken individually? Or, another way of asking, were the interactive rebase commands based on some other Git command which could be pain to do on many commits individually?

Emily
Previous: Konstantin KharlamovNext: Eric Sunshine
Message 2 of 4 in “[RFE] Allow for "interactive"-like actions in non-interactive rebase”
  1. Konstantin KharlamovMay 3, 2019
  2. Emily ShafferMay 6, 2019
  3. Eric SunshineMay 6, 2019
  4. Konstantin KharlamovMay 7, 2019

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.