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

Re: Interactive rebase bug involving merge commits

From
PWPhillip Wood <phillip.wood123@gmail.com>
Date
Nov 18, 2025, 19:52 UTC
Message-ID
<cf524772-f919-4286-a9db-eb26b87b5cc6@gmail.com>
In-Reply-To
<LV8PR17MB74355C21BF9542254EE8E82BADD6A@LV8PR17MB7435.namprd17.prod.outlook.com>
Hi Bailey
On 18/11/2025 19:15, Bailey Muckel wrote:
Show 6 quoted lines
> What did you do before the bug happened? (Steps to reproduce your issue)
> I ran `git rebase -i --rebase-merges {commit hash}`, then changed the
> command for one of my merge commits from "merge -C ..." to "drop ..."
> expecting it to remove the merge commit entirely
> What happened instead? (Actual behavior)
> It output the statement "BUG: sequencer.c:2695: unexpected todo_command"

Thanks for reporting this. This bug was recently fixed by commit 4d491ade8f6 (rebase -i: permit 'drop' of a merge commit, 2025-08-06) which is included in git 2.51.1 or later.

Thanks
Phillip
Show 41 quoted lines
> and remained in an interactive rebase state until I ran "git rebase --abort"
> What's different between what you expected and what actually happened?
> I expected it to act the way it would if I deleted the entire merge
> commit line: remove the merge and keep both branches of the merge
> otherwise the same
> Anything else you want to add:
> 
> Please review the rest of the bug report below.
> You can delete any lines you don't wish to share.
> 
> 
> [System Info]
> git version:
> git version 2.49.0.windows.1
> cpu: x86_64
> built from commit: cca1f38702730b35f52c29efd62864b85e85ddcc
> sizeof-long: 4
> sizeof-size_t: 8
> shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
> feature: fsmonitor--daemon
> libcurl: 8.12.1
> OpenSSL: OpenSSL 3.2.4 11 Feb 2025
> zlib: 1.3.1
> uname: Windows 10.0 19045
> compiler info: gnuc: 14.2
> libc info: no libc information available
> $SHELL (typically, interactive shell): <unset>
> 
> 
> [Enabled Hooks]
> 
> 
> Thank you,
> 
> Bailey Muckel (he/him)
> Data Engineer
> Building Service 32BJ Health Fund
> 23 West 18th Street, 8th Floor | New York, NY 10011-4676
> Email: bmuckel@32bjfunds.com
>   
> 
Previous: Bailey Muckel
Message 2 of 2 in “Interactive rebase bug involving merge commits”
  1. Bailey MuckelNov 18, 2025
  2. Phillip WoodNov 18, 2025

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.