Thread (1 message) 1 message, 1 author, 2018-02-06

Re: cherry-pick '-m' curiosity

From: Sergey Organov <hidden>
Date: 2018-02-06 09:25:34

Stefan Beller [off-list ref] writes:
On Mon, Feb 5, 2018 at 3:46 AM, Sergey Organov [off-list ref] wrote:
quoted
Hello,

$ git help cherry-pick

-m parent-number, --mainline parent-number
           Usually you cannot cherry-pick a merge because you do not
           know which side of the merge should be considered the
           mainline.

Isn't it always the case that "mainline" is the first parent, as that's
how "git merge" happens to work?

Is, say, "-m 2" ever useful?
Say you want to backport everything except that topic using cherry-picks.
Then -m2 would be useful?
Didn't get the idea, sorry. Care to clarify?

-- Sergey
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help