git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Interactive rebase: using "pick" for merge commits
@ 2024-02-09 15:52 Stefan Haller
  2024-02-09 16:24 ` Phillip Wood
  0 siblings, 1 reply; 10+ messages in thread
From: Stefan Haller @ 2024-02-09 15:52 UTC (permalink / raw)
  To: git

When I do an interactive rebase, and manually enter a "pick" with the
commit hash of a merge commit, I get the following confusing error message:

error: commit fa1afe1 is a merge but no -m option was given.
hint: Could not execute the todo command
hint:
hint:     pick fa1afe1 some subject
hint:
hint: It has been rescheduled; [rest of message snipped]

This error message makes it sound like I could somehow add "-m1" after
the "pick" to make it work (which is actually what I would like to be
able to do). I had to go read the source code to find out that that's
not the case, and the error message only comes from the fact that the
code is shared with the cherry-pick and revert commands, which do have
the -m option.

Is it crazy to want pick to work like this? Should it be supported?

-Stefan

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-02-27 10:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-09 15:52 Interactive rebase: using "pick" for merge commits Stefan Haller
2024-02-09 16:24 ` Phillip Wood
2024-02-10  9:23   ` Stefan Haller
2024-02-12  7:15     ` Patrick Steinhardt
2024-02-12 14:38       ` Phillip Wood
2024-02-23 20:59         ` Stefan Haller
2024-02-26 10:56           ` Phillip Wood
2024-02-26 19:07             ` Stefan Haller
2024-02-27 10:41               ` phillip.wood123
2024-02-12 16:39       ` Junio C Hamano

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).