[PATCH 0/4] builtin/history: some smaller UI improvements
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Feb 12, 2026, 12:44 UTC
- Message-ID
- <20260212-b4-pks-history-dry-run-v1-0-1ce03d631c1b@pks.im>
Hi,
this patch series contains a small set of UI improvements for git-history(1):
- The first two commits adapt git-history(1) so that it performs
verifications before asking the user for input. - The last two commits rework the "--ref-action=" option to instead be
split up into "--dry-run" and "--update-refs=" so that the option is
less focussed on technical implementation details.I decided to send this patch series as a small incremental step before sending `git history split`, also because that series conflicts with aa/add-p-no-auto-advance.
Thanks!
Patrick
---
Patrick Steinhardt (4):
builtin/history: perform revwalk checks before asking for user input
builtin/history: check for merges before asking for user input
builtin/history: replace "--ref-action=print" with "--dry-run"
builtin/history: rename "--ref-action=" to "--update-refs="Documentation/git-history.adoc | 12 +- builtin/history.c | 255 ++++++++++++++++++++++++++--------------- t/t3451-history-reword.sh | 20 +++- 3 files changed, 181 insertions(+), 106 deletions(-)
--- base-commit: 6fcee4785280a08e7f271bd015a4dc33753e2886 change-id: 20260212-b4-pks-history-dry-run-2b840e530ae6