Re: error: could not parse 'Drop' when rebasing
- From
- Phillip 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