[PATCH 0/2] builtin/history: introduce "drop" subcommand
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Jun 1, 2026, 15:36 UTC
- Message-ID
- <20260601-b4-pks-history-drop-v1-0-643e32340d55@pks.im>
Hi,
this small patch series introduces the new "drop" subcommand for git-history(1). As a reader might guess, the command does exactly that: given a commit, it will drop that commit from the commit history and replay descendant branches on top of it.
Thanks!
Patrick
---
Patrick Steinhardt (2):
builtin/history: split handling of ref updates into two phases
builtin/history: implement "drop" subcommandDocumentation/git-history.adoc | 38 ++- builtin/history.c | 333 +++++++++++++++++++++++--- t/meson.build | 1 + t/t3454-history-drop.sh | 513 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 846 insertions(+), 39 deletions(-)
--- base-commit: 1666c1265231b0bc5f613fbbf3f0a9896cdef76e change-id: 20260601-b4-pks-history-drop-28f6c6399e7b