[Insight-developers] git process - merging in master before push to gerrit
Bill Lorensen
bill.lorensen at gmail.com
Mon Nov 29 17:31:04 EST 2010
I had a situation last week where my gerrit-merge reported conflicts.
I blindly followed the instructions, resolved the conflict and all
went. fine.
Bill
On Mon, Nov 29, 2010 at 8:23 AM, Brad King <brad.king at kitware.com> wrote:
> On 11/24/2010 09:20 PM, Michael Stauffer (Circular Logic) wrote:
>> Should we always rebase like this with origin/master before pushing to
>> gerrit?
>
> In general this is not necessary. It is prudent if you suspect there
> may be conflicting work in master since you started your topic.
>
> If you made many commits of partially completed work then you should
> typically rebase to edit the commits and organize them into logically
> distinct incremental changes (for easier review). However, the new
> base can just be the same as the old base in that case.
>
>> Seems reasonable, since it makes sure our changes work. But if
>> somethings broken in an origin/master commit that was made since we
>> branched, our change may fail. Do we wait for a fix on that or push up
>> our change based on its original original/master branch point?
>
> This is one reason to not rebase if you do not need to do so. It will
> be easier for a reviewer to compile/test your changes if they are always
> based on an otherwise working version.
>
>> Similarly, after a change has been reviewed and accepted, the wiki says
>> to just git gerrit-merge it. So in this case we don't need to rebase on
>> origina/master to check for problems first?
>
> Most of the time work is independent and the merged version will be okay.
> If there are merge conflicts the gerrit-merge will print instructions
> to merge master into your topic first. Yes, there are pathological cases
> where there can be a conceptual or logic conflict that does not manifest
> itself as a content conflict, but it is not worth extra steps for every
> topic to handle the rare case.
>
> -Brad
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
More information about the Insight-developers
mailing list