Re: [PATCH v5 0/4] history: add squash subcommand to fold a range
- From
Harald Nordgren <haraldnordgren@gmail.com>
- Date
- Jun 30, 2026, 07:19 UTC
- Message-ID
- <CAHwyqnVBEOm+FwD+i9Aa7edTvdnDPJom1zubcXgoExZnp--vWQ@mail.gmail.com>
- In-Reply-To
- <DJM1N17VMUM5.3V5Y6YMFLIFQJ@lfurio.us>
Show 7 quoted lines
> This is probably a larger question, since (according to the man page) it > affects the other 'git history' commands as well. When I run > 'git history ...' and discover that I made a mistake after inspecting > the results, is there a fool-proof way to undo the change and return to > the previous state? My first thought was to run 'git reset --hard ...', > but the default behavior of --update-refs (moving other branches) can > make this more complicated.
This is a larger question: But I would love to have a reflog that is more human-centered. When e.g. rebasing a series with N commits, it's very tricky in the reflog to find what was the state before that.
I feel like branch switching is given too much space in the reflog, since it's not a destructive action, I don't care about it.
And when handling multiple commits in on go (squashing, rebasing), I would love to see a visual hierarchy (with indentation for sub-steps) instead of treating each action as equally important when it isn't.
Harald