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

Re: error: could not parse 'Drop' when rebasing

From
PWPhillip Wood <phillip.wood123@gmail.com>
Date
Mar 26, 2025, 15:12 UTC
Message-ID
<65e64dda-31e2-43fa-8269-f1bd5f3d26e7@gmail.com>
In-Reply-To
<CAOqj8L1Ammwp07ju2dweVhRVdkTv=hROaDjcoXbxJj8xNq8Gtg@mail.gmail.com>
Hi Jarno
On 26/03/2025 10:43, Jarno Suni wrote:
Show 13 quoted lines
> On Wed, Mar 26, 2025 at 12:20 PM Phillip Wood <phillip.wood123@gmail.com> wrote:
> 
>> It appears that the object id for the commit got deleted when the
>> command was changed from "pick" to "reword" and so git does not know
>> which commit this line is referring to. The commit subject is there for
>> the benefit of the user not for git - after all many commits could share
>> the same subject.
> 
> The error appeared first time in the rebase after I changed the command
> from pick to drop (or d for short.) I had never used d  before but I have
> used e many times without an issue. Even the d command worked after I
> edited the commit message title (in new rebase). So I suspect that there
> is something in wrong in parsing d command.

I'm not sure that explains why the commit object id is missing. If you are able to reproduce this bug and show the edited todo-list with the drop commands and the errors produced by that todo-list that would be very helpful. Without that it is hard to tell what's happening here.

Thanks
Phillip
Previous: Phillip Wood
Message 3 of 3 in “error: could not parse 'Drop' when rebasing”
  1. Jarno SuniMar 26, 2025
  2. Phillip WoodMar 26, 2025
  3. Phillip WoodMar 26, 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.