Re: [PATCH] history: refuse to rewrite branches used by other worktrees
- From
- Aniket Gupta <aniketgupta3001@gmail.com>
- Date
- Nov 24, 2026, 14:09 UTC
- Message-ID
- <20261124140905.47213-1-aniketgupta3001@gmail.com>
- In-Reply-To
- <14c971ef-438c-4197-b0cd-df9bf0ef0ae4@gmail.com>
> That sounds like a bug though, because "git history" will update > HEAD in the middle of a rebase and we throw away the result of > running "git history" when "git rebase" completes.
It was wrong to say it is refused. That only happens when the commit is still on the branch being rebased. My bad. Otherwise, the rewrite is gone after "git rebase --abort". Will refuse in both modes.