From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Thum Subject: Re: [DEV] New git workflow Date: Sun, 01 Apr 2012 11:26:18 +0200 Message-ID: <4F781F3A.1030507@gmx.de> References: <87mx7cf613.fsf@altern.org> <4F69063F.40600@gmx.de> <87fwcyqmwe.fsf@hati.baby-gnu.org> <4F6E29AD.1040304@gmx.de> <32435.1332617387@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEH3J-0005b1-Nw for emacs-orgmode@gnu.org; Sun, 01 Apr 2012 05:26:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEH3H-00056G-Kp for emacs-orgmode@gnu.org; Sun, 01 Apr 2012 05:26:25 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:58970) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SEH3H-00055t-BY for emacs-orgmode@gnu.org; Sun, 01 Apr 2012 05:26:23 -0400 In-Reply-To: <32435.1332617387@alphaville> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Daniel Dehennin , emacs-orgmode@gnu.org Hi Nick, I did not mean to imply git is not capable of working that way. It's more a question of what is accepted practice and most importantly, what fits the problem you actually have. The difference between both approaches, it seems to me, shows when there is a difference between the fix is it would have looked when done right from the first day on, and the fix as it looks when introduced later. Daggy fixes' mental image is to incrementally fix your release branches (or how you call them) each the in way it needs to be fixed. Cherry-picking usually implies (but does not mandate!) fix on master, then go back. Git's support for the other way round could be better, e.g. by introducing a DAGGY_FIX_HEAD and repo mode so you don't need to alternate cherry-pick, tag, checkout, ... To me the mental image behind is the main difference, and what is better depends on the fix and the project and what not. Just my 2c. Cheers, Simon On 03/24/2012 08:29 PM, Nick Dokos wrote: > Simon Thum wrote: > >> Hi Daniel, >> >> On 03/24/2012 12:05 PM, Daniel Dehennin wrote: >>> Simon Thum writes: >>> It seems that one problem with cherry-picking is the tracking of what is >>> in which branch and from where it comes. >>> >>> I'm not a git neither DVCS guru, but daggyfixes[1][2][3] is saner than >>> cherry-picking. >> >> I'm a bit biased as I mainly have git experience but to me it seems >> that both cherry-picking and daggy fixes have their strengths and >> weaknesses, and I'd rather have them both in all the VCSes but >> needless fights over which one is ultimately superior. Git should >> probably learn that thing, IMO. >> > > I'm probably missing something but what's there to learn? You check out > the offending commit, make a branch off of it, commit the fix on the > branch, give it a tag (so you can find it easily later on) and then > merge it back anywhere you want. AFAICT, that's all there is to > daggy-fixes and git is perfectly capable of doing that - no? > > Nick > >>> >>> Footnotes: >>> [1] http://mercurial.selenic.com/wiki/DaggyFixes >>> >>> [2] http://wiki.monotone.ca/DaggyFixes/ >>> >>> [3] http://stackoverflow.com/questions/2922652/git-is-there-a-way-to-figure-out-where-a-commit-was-cherry-picked-from >>> >> >> >