Re: cherry-pick '-m' curiosity
- From
Stefan Beller <sbeller@google.com>
- Date
- Feb 5, 2018, 22:03 UTC
- Message-ID
- <CAGZ79kZ5ZiETM7L6DRr1pSXMGBPPyOazsM8Gi0E9jrMYfwrfdA@mail.gmail.com>
- In-Reply-To
- <87wozry7z4.fsf@javad.com>
On Mon, Feb 5, 2018 at 3:46 AM, Sergey Organov <sorganov@gmail.com> wrote:
Show 13 quoted lines
> 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?