From: Kurt Van Dijck Subject: Re: using git Date: Wed, 11 Jan 2012 13:54:33 +0100 Message-ID: <20120111125433.GH314@e-circ.dyndns.org> References: <20111221091948.GC314@e-circ.dyndns.org> <4EF2D0F3.6080909@hartkopp.net> <4F0D6EA9.4070708@pengutronix.de> <4F0D6FB7.9090407@hartkopp.net> <20120111122609.GG314@e-circ.dyndns.org> <4F0D82E6.4050800@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Return-path: Received: from gate.eia.be ([194.78.71.18]:50862 "EHLO mail.eia.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751482Ab2AKMyf (ORCPT ); Wed, 11 Jan 2012 07:54:35 -0500 Content-Disposition: inline In-Reply-To: <4F0D82E6.4050800@pengutronix.de> Sender: linux-can-owner@vger.kernel.org List-ID: To: Marc Kleine-Budde Cc: Oliver Hartkopp , linux-can@vger.kernel.org On Wed, Jan 11, 2012 at 01:39:02PM +0100, Marc Kleine-Budde wrote: > On 01/11/2012 01:26 PM, Kurt Van Dijck wrote: > >>> nitpick: > >>> Oliver, please don't forget to add your S-o-b if you are pushing commits > >>> to the tree. > >> > >> > >> Yes. I noticed myself, that i need to improve this process by reading more git > >> documentation ;-) > >> > >> Yesterday i just cherry-picked the patch and pushed it to the repo. > >> > >> The next time i'll do it the right(TM) way :-) > > > > Oliver or Marc, > > > > just out of curiosity, > > what would be the right(TM) way? > > 3 possibilities: > > 1) merge your tree: > (if it only contains the patch we want) > > git checkout master > git merge tree-of-kvd/branch-name > git push origin master > > 2) cherry pick > > git checkout master > git cherry-pick -s commitish-of-patch # -s automatically adds the S-o-b > git push origin master > > 3) apply patch > > git checkout master > git am -s /path/to/patch # -s automatically adds the S-o-b > git push origin master > thanks for this lesson :-) 1 additional question: Would in case 3 the SHA commit name be the same? Thanks, Kurt > > For solution 1 and 2 you need Kurt's tree in your local repo (git remote > add). > > Marc