* error: could not parse 'Drop' when rebasing
@ 2025-03-26 7:17 Jarno Suni
2025-03-26 10:20 ` Phillip Wood
0 siblings, 1 reply; 3+ messages in thread
From: Jarno Suni @ 2025-03-26 7:17 UTC (permalink / raw)
To: git
git version 2.43.0
$ git rebase --edit-todo
error: could not parse 'Drop'
error: invalid line 1: r Drop option --figure-soname-bumps
error: could not parse 'Drop'
error: invalid line 1: p Drop option --figure-soname-bumps
You can fix this with 'git rebase --edit-todo' and then run 'git
rebase --continue'.
Or you can abort the rebase with 'git rebase --abort'.
"Drop option --figure-soname-bumps" is the commit message.
Git doesn't seem to accept any command for the commit. First I tried command d.
Workaround:
I did `git rebase --abort`. Started new rebase, used r command for the
commit to rename it to not have "Drop" as first word. After that I can
rebase again and use d command for the commit.
--
Jarno Suni
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: error: could not parse 'Drop' when rebasing
2025-03-26 7:17 error: could not parse 'Drop' when rebasing Jarno Suni
@ 2025-03-26 10:20 ` Phillip Wood
[not found] ` <CAOqj8L1Ammwp07ju2dweVhRVdkTv=hROaDjcoXbxJj8xNq8Gtg@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Phillip Wood @ 2025-03-26 10:20 UTC (permalink / raw)
To: Jarno Suni, git
Hi Jarno
On 26/03/2025 07:17, Jarno Suni wrote:
> git version 2.43.0
>
> $ git rebase --edit-todo
> error: could not parse 'Drop'
> error: invalid line 1: r Drop option --figure-soname-bumps
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.
Best Wishes
Phillip
> error: could not parse 'Drop'
> error: invalid line 1: p Drop option --figure-soname-bumps
> You can fix this with 'git rebase --edit-todo' and then run 'git
> rebase --continue'.
> Or you can abort the rebase with 'git rebase --abort'.
>
> "Drop option --figure-soname-bumps" is the commit message.
> Git doesn't seem to accept any command for the commit. First I tried command d.
>
> Workaround:
> I did `git rebase --abort`. Started new rebase, used r command for the
> commit to rename it to not have "Drop" as first word. After that I can
> rebase again and use d command for the commit.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-26 15:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-26 7:17 error: could not parse 'Drop' when rebasing Jarno Suni
2025-03-26 10:20 ` Phillip Wood
[not found] ` <CAOqj8L1Ammwp07ju2dweVhRVdkTv=hROaDjcoXbxJj8xNq8Gtg@mail.gmail.com>
2025-03-26 15:12 ` Phillip Wood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).