ReviewBoard is now the official review tool for juju

roger peppe roger.peppe at canonical.com
Tue Sep 16 13:03:09 UTC 2014


On 16 September 2014 13:45, David Cheney <david.cheney at canonical.com> wrote:
> On Tue, Sep 16, 2014 at 7:27 PM, roger peppe <roger.peppe at canonical.com> wrote:
>> On 16 September 2014 09:22, Jonathan Aquilina <jaquilina at eagleeyet.net> wrote:
>>> If i am not mistaken if you have multiple commits in a branch git has
>>> something built in called git squash. This obviously eliminates the 5 step
>>> process into one merge and one push.
>>
>> I don't see that command. Are you thinking of the "squash"
>> functionality of rebase -i?
>>
>> FWIW, I never run those five steps in sequence together.
>> Usually I just get to a situation where I know that I have all tests
>> passing and I'm up to date with master (for example I've done a merge
>> some time ago, probably before fixing a bunch of tests).
>>
>> Then it's just:
>>
>> $ git reset upstream/master
>> $ git commit -am 'my commit message'
>
> Nice trick, so that resets the underlying branch to master, leaving
> everything you have comitted or merged uncomitted ?

Yes. Specifically, it sets the branch *head* to the same as master - the current
branch name does not change.



More information about the Juju-dev mailing list