git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] history: refuse to rewrite branches used by other worktrees

From
AGAniket 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.

Previous: Phillip WoodNext: Junio C Hamano
Message 5 of 7 in “history: refuse to rewrite branches used by other worktrees”
  1. history: refuse to rewrite branches used by other worktreesAniket Gupta, Nov 23, 2026
  2. Phillip WoodNov 23, 2026
  3. Aniket GuptaNov 23, 2026
  4. Phillip WoodNov 24, 2026
  5. Aniket GuptaNov 24, 2026
  6. Junio C HamanoNov 23, 2026
  7. Aniket GuptaNov 23, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.