[openstack-dev] [git-review] Supporting development in local branches

Chris Friesen chris.friesen at windriver.com
Thu Aug 7 06:28:28 UTC 2014


On 08/06/2014 05:41 PM, Zane Bitter wrote:
> On 06/08/14 18:12, Yuriy Taraday wrote:
>>>> 2. since hacking takes tremendous amount of time (you're doing a Cool
>>>> >>Feature (tm), nothing less) you need to update some code from
>>>> master, so
>>>> >>you're just merging master in to your branch (i.e. using Git as you'd
>>>> >>use it normally);
>>>> >>
>>> >
>>> >This is not how I'd use Git normally.
>>
>> Well, as per Git author, that's how you should do with not-CVS. You have
>> cheap merges - use them instead of erasing parts of history.
>
> This is just not true.
>
> http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg39091.html
>
> Choice quotes from the author of Git:
>
> * 'People can (and probably should) rebase their _private_ trees'
> * 'you can go wild on the "git rebase" thing'
> * 'we use "git rebase" etc while we work on our problems.'
> * '"git rebase" is not wrong.'

Also relevant:

"...you must never pull into a branch that isn't already
in good shape."

"Don't merge upstream code at random points."

"keep your own history clean"

Chris



More information about the OpenStack-dev mailing list