Re: Managing multiple branches in git

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, "David E(dot) Wheeler" <david(at)kineticode(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Managing multiple branches in git
Date: 2009-06-02 17:37:01
Message-ID: 4A25633D.504@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andres Freund wrote:
> On 06/02/2009 06:33 PM, Tom Lane wrote:
>> At the same time, I don't really buy the theory that relating commits on
>> different branches via merges will work. In my experience it is very
>> seldom the case that a patch applies to each back branch with no manual
>> effort whatever, which is what I gather the merge functionality could
>> help with. So maybe there's not much help to be had on this ...
> You can do a merge and change the commit during that - this way you get
> the merge tracking information correct although you did a merge so that
> further merge operations can consider the specific change to be applied
> on both/some/all branches.
> This will happen by default if there is a merge conflict or can be
> forced by using the --no-commit option to merge.

Yeah, that should work fine.

However, handling fixes to multiple branches by merging the release
branches to master seems awkward to me. A merge will merge *all* commits
in the release branch. Including "stamp 8.3.1" commits, and fixes for
issues in release branches that are not present in master.

Cherry-picking seems like the best approach.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-06-02 17:39:45 Re: from_collapse_limit vs. geqo_threshold
Previous Message Marko Kreen 2009-06-02 17:26:57 Re: Managing multiple branches in git