Re: [PATCH v6 2/2] replay: add --revert mode to reverse commit changes
- From
Toon Claes <toon@iotcl.com>
- Date
- Mar 31, 2026, 08:11 UTC
- Message-ID
- <87ldf8l8ot.fsf@toon--20250203-5JQV3.mail-host-address-is-not-set>
- In-Reply-To
- <6427d088-e41c-47ff-ab6e-4d7679e85d3c@gmail.com>
Siddharth Asthana <siddharthasthana31@gmail.com> writes:
Show 9 quoted lines
> On 28/03/26 10:03, Tian Yuchen wrote: >> I think it would be great if a low-level command supported something like: >> >> git replay --revert new-branch HEAD~3..HEAD > > > Interesting idea. git replay is still experimental so the interface > could evolve. Worth considering as a follow-up but I would keep it out > of this series for now.
So you want git-replay(1) to create a new ref `new-branch`? But where should it start from?
I'm building a proposal for this in [1]. This proposal is a bit more flexible than what you're suggesting here, because it enables setting the starting point.
[1]: https://lore.kernel.org/git/20260325-toon-replay-arbitrary-ref-v2-0-553038702c9c@iotcl.com/
-- Cheers, Toon