Re: [RFE] Allow for "interactive"-like actions in non-interactive rebase
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- May 6, 2019, 22:25 UTC
- Message-ID
- <CAPig+cTC8aGkM3ksG9cEapz33-FcjsvoO9ejeJzjmkyXHjvoJQ@mail.gmail.com>
- In-Reply-To
- <20190506203003.GA85211@google.com>
On Mon, May 6, 2019 at 4:30 PM Emily Shaffer <emilyshaffer@google.com> wrote:
Show 14 quoted lines
> On Fri, May 03, 2019 at 06:04:15PM +0300, Konstantin Kharlamov wrote: > > 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… > > > > 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. > > > > $ git rebase -i HEAD~10 --action edit > > $ git rebase -i HEAD~10 --action rename > > $ git rebase -i HEAD~10 --action fixup > > I would totally use this. The equivalent workflow right now is a pretty > large number of steps for, say, fixing a typo.
Isn't this pretty much what Phil Hord's RFC patch series[1] was about? However, Junio outlined[2] a generalization of that approach providing more flexibility and control.
[1]: https://public-inbox.org/git/20190422000712.13584-1-phil.hord@gmail.com/ [2]: https://public-inbox.org/git/xmqqk1fm9712.fsf@gitster-ct.c.googlers.com/