From: Harald Nordgren via GitGitGadget Date: Thu, 15 Oct 2026 13:13:55 GMT Subject: [PATCH 0/3] reflog: add --operations and --historical-branch Message-ID: Create a better reflog. Follows the discussion in https://lore.kernel.org/git/akZfm-igZKeHaDST@pks.im/. "git reflog" lists every step of a rebase and every branch switch, which makes it hard to see what was done and on which branch. This adds two options to "git reflog" and "git log -g": * --operations shows one entry per command, folding a rebase into the entry that finished or aborted it, and leaves out entries that change no branch. * --historical-branch decorates each entry with the branch HEAD was on when it was recorded. Harald Nordgren (3): reflog: name the strings that mark switches, renames and rebase steps reflog: add --operations to show one entry per command reflog: add --historical-branch to name the branch of each entry Documentation/git-reflog.adoc | 4 + Documentation/rev-list-options.adoc | 19 +++ builtin/branch.c | 3 +- builtin/checkout.c | 3 +- builtin/rebase.c | 17 +-- log-tree.c | 21 +++ object-name.c | 3 +- reflog-walk.c | 172 ++++++++++++++++++++++-- reflog-walk.h | 3 + reflog.h | 6 + revision.c | 14 ++ revision.h | 2 + sequencer.c | 13 +- t/t1414-reflog-walk.sh | 198 ++++++++++++++++++++++++++++ wt-status.c | 3 +- 15 files changed, 455 insertions(+), 26 deletions(-) base-commit: 6de20f6092dcf9bdb1c8efe03db4b70c82b423dd Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2448%2FHaraldNordgren%2Freflog-operations-v1 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2448/HaraldNordgren/reflog-operations-v1 Pull-Request: https://github.com/git/git/pull/2448 -- gitgitgadget