<div dir="ltr"><div>If you use "git show" it will tell you the parents of the commit eg:<br></div><div><br></div><div>$ git show</div><div><div>commit 918f3de1c99697be7057c401a245bc57a788483f</div><div>Merge: 3b23866 3fce69c</div>
<div>Author: Daniel Murphy <<a href="mailto:yebblies@gmail.com">yebblies@gmail.com</a>></div><div>Date: Wed Jan 22 07:59:12 2014 -0800</div><div><br></div><div> Merge pull request #3139 from 9rnsr/fix11968</div>
<div><br></div><div> Issue 11968 - ICE(expression.c) Crash when deleting __FILE__</div></div><div><br></div><div>Using git show on the parents will tell you what each was:</div><div>$ git show 3b23866 </div><div><div>commit 3b23866da32b98426bbb94011c19bf928102e01f</div>
<div>Merge: e1bb12f d031e96</div><div>Author: Daniel Murphy <<a href="mailto:yebblies@gmail.com">yebblies@gmail.com</a>></div><div>Date: Wed Jan 22 05:25:46 2014 -0800</div><div><br></div><div> Merge pull request #3137 from 9rnsr/fix11967</div>
<div><br></div><div> [REG2.065a] Issue 11967 - ICE(parse.c) Parser crash</div></div><div><br></div><div>Which makes it clear that commit (the first one, or -m1) was the master branch and the other was the pull request.</div>
<div><br></div><div>In general the first one will always be the old master commit and should be set as the mainline.</div><div><br></div><div>As always, make sure to check in gitk or github diff or something similar that what you wanted is what actually happened before pushing to upstream.</div>
<div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 23, 2014 at 4:00 AM, Andrew Edwards <span dir="ltr"><<a href="mailto:edwards.ac@gmail.com" target="_blank">edwards.ac@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
I've made four attempts at cherry-picking, all of which resulted in error identical to the following:<br>
<br>
seireitei:dmd ace$ git cherry-pick 19a756<br>
error: Commit 19a756f99c610b2906cc87b0e10b63<u></u>b42a49a4e2 is a merge but no -m option was given.<br>
fatal: cherry-pick failed<br>
<br>
The step followed for this particular attempt:<br>
<br>
cd dmd/<br>
git checkout master<br>
git pull<br>
git checkout release<br>
git cherry-pick 19a756<br>
<br>
>From what I understand, this is caused by the particular item being picked having multiple parents. The solution would be to identify which of the parents to use as the base:<br>
<br>
git cherry-pick -m 1 19a756<br>
<br>
This would designate parent #1 as the base. My question is this: How do I know which parent is the base? Is it always parent #1?<br>
<br>
Thanks,<br>
Andrew<br>
______________________________<u></u>_________________<br>
dmd-beta mailing list<br>
<a href="mailto:dmd-beta@puremagic.com" target="_blank">dmd-beta@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/dmd-beta" target="_blank">http://lists.puremagic.com/<u></u>mailman/listinfo/dmd-beta</a><br>
</blockquote></div><br></div></div>