{"thread":{"id":"63197","subject":"error: could not parse 'Drop' when rebasing","startedAt":"2025-03-26T07:17:17Z","lastAt":"2025-03-26T15:13:01Z","messageCount":3,"participants":["Jarno Suni","Phillip Wood"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"515077","messageId":"CAOqj8L0hknJ2aYGSmXdUvRgzHZRWBTMgSvywGpc=TUZL-Dqnmw@mail.gmail.com","threadId":"63197","inReplyTo":null,"subject":"error: could not parse 'Drop' when rebasing","fromName":"Jarno Suni","fromEmail":"jarno.ilari.suni@gmail.com","sentAt":"2025-03-26T07:17:06Z","receivedAt":"2025-03-26T07:17:17Z","isPatch":false,"sender":{"key":"jarno.ilari.suni@gmail.com","avatar":null},"body":"git version 2.43.0\n\n$ git rebase --edit-todo\nerror: could not parse 'Drop'\nerror: invalid line 1: r Drop option --figure-soname-bumps\nerror: could not parse 'Drop'\nerror: invalid line 1: p Drop option --figure-soname-bumps\nYou can fix this with 'git rebase --edit-todo' and then run 'git\nrebase --continue'.\nOr you can abort the rebase with 'git rebase --abort'.\n\n\"Drop option --figure-soname-bumps\" is the commit message.\nGit doesn't seem to accept any command for the commit. First I tried command d.\n\nWorkaround:\nI did `git rebase --abort`. Started new rebase, used r command for the\ncommit to rename it to not have \"Drop\" as first word. After that I can\nrebase again and use d command for the commit.\n\n-- \nJarno Suni\n"},{"id":"515092","messageId":"3b09226a-8281-4560-aa23-74aeaa3ff41a@gmail.com","threadId":"63197","inReplyTo":"CAOqj8L0hknJ2aYGSmXdUvRgzHZRWBTMgSvywGpc=TUZL-Dqnmw@mail.gmail.com","subject":"Re: error: could not parse 'Drop' when rebasing","fromName":"Phillip Wood","fromEmail":"phillip.wood123@gmail.com","sentAt":"2025-03-26T10:20:39Z","receivedAt":"2025-03-26T10:20:42Z","isPatch":false,"sender":{"key":"phillip.wood@dunelm.org.uk","avatar":null},"body":"Hi Jarno\n\nOn 26/03/2025 07:17, Jarno Suni wrote:\n> git version 2.43.0\n> \n> $ git rebase --edit-todo\n> error: could not parse 'Drop'\n> error: invalid line 1: r Drop option --figure-soname-bumps\n\nIt appears that the object id for the commit got deleted when the \ncommand was changed from \"pick\" to \"reword\" and so git does not know \nwhich commit this line is referring to. The commit subject is there for \nthe benefit of the user not for git - after all many commits could share \nthe same subject.\n\nBest Wishes\n\nPhillip\n  > error: could not parse 'Drop'\n> error: invalid line 1: p Drop option --figure-soname-bumps\n> You can fix this with 'git rebase --edit-todo' and then run 'git\n> rebase --continue'.\n> Or you can abort the rebase with 'git rebase --abort'.\n> \n> \"Drop option --figure-soname-bumps\" is the commit message.\n> Git doesn't seem to accept any command for the commit. First I tried command d.\n> \n> Workaround:\n> I did `git rebase --abort`. Started new rebase, used r command for the\n> commit to rename it to not have \"Drop\" as first word. After that I can\n> rebase again and use d command for the commit.\n> \n\n"},{"id":"515097","messageId":"65e64dda-31e2-43fa-8269-f1bd5f3d26e7@gmail.com","threadId":"63197","inReplyTo":"CAOqj8L1Ammwp07ju2dweVhRVdkTv=hROaDjcoXbxJj8xNq8Gtg@mail.gmail.com","subject":"Re: error: could not parse 'Drop' when rebasing","fromName":"Phillip Wood","fromEmail":"phillip.wood123@gmail.com","sentAt":"2025-03-26T15:12:59Z","receivedAt":"2025-03-26T15:13:01Z","isPatch":false,"sender":{"key":"phillip.wood@dunelm.org.uk","avatar":null},"body":"Hi Jarno\n\nOn 26/03/2025 10:43, Jarno Suni wrote:\n> On Wed, Mar 26, 2025 at 12:20 PM Phillip Wood <phillip.wood123@gmail.com> wrote:\n> \n>> It appears that the object id for the commit got deleted when the\n>> command was changed from \"pick\" to \"reword\" and so git does not know\n>> which commit this line is referring to. The commit subject is there for\n>> the benefit of the user not for git - after all many commits could share\n>> the same subject.\n> \n> The error appeared first time in the rebase after I changed the command\n> from pick to drop (or d for short.) I had never used d  before but I have\n> used e many times without an issue. Even the d command worked after I\n> edited the commit message title (in new rebase). So I suspect that there\n> is something in wrong in parsing d command.\n\nI'm not sure that explains why the commit object id is missing. If you \nare able to reproduce this bug and show the edited todo-list with the \ndrop commands and the errors produced by that todo-list that would be \nvery helpful. Without that it is hard to tell what's happening here.\n\nThanks\n\nPhillip\n"}]}