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

git rebase -p does not find mainline

From
David Kastrup <dak@gnu.org>
Date
Oct 28, 2011, 07:51 UTC
Message-ID
<874nytlfkd.fsf@fencepost.gnu.org>

When doing git rebase -p in order to do a non-trivial rebase tracking merges, I get a message about a missing -m option for specifying the mainline.

git rebase does not have the corresponding option.  The fix is to do

git cherry-pick -m 1 offending-merge-commit git rebase --continue

but that is quite unobvious from the resulting error message that does not even mention "cherry-pick". Since git rebase -p is supposed to "preserve merges", it should just cherry-pick with the same mainline that the original merge commit had, without asking the user questions or even failing.

This is the version of git delivered with Ubuntu 11.10, namely 1.7.5.4.
-- 
David Kastrup
Message 1 of 1 in “git rebase -p does not find mainline”
  1. David KastrupOct 28, 2011

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.