Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On Fri, Nov 23, 2012 at 1:06 AM, Winfried Donkers
<W.Donkers@dci-electronics.nl> wrote:
Hi all,



I submitted a patch to gerrit with logerrit. The reviewer had some comments
which need alteration of the patch.

But how to 'resubmit' this changed patch once that is ready?

All I can find on this area is to use git push […], but I can't/won't push.
My patches need to be reviewed by sane persons before they are pushed :)


This is how I do it:

When I work, I frist create a branch out of a point in master
(preferably a oen that build nicely :-) )
so nwo I'm on branch 'foo' for example.

I code my patch, then I submity it to gerrit via

git push origin foo:refs/for/master

then I checkout out master again... and keep going...


When the review comes and modification to my patch are needed, I
checkout out the branch foo again...
the I make the modifications and 'amend' the commit (which _is_ the
commit I pushed to gerrit)
and then push it again using the same command.

rince and repeat until the patch is ready...

then I let gerrit cherry pick it on top of master.. if ok, then I can
delete the foo branch locally

if the cherry pick failed because of a conflict... I fetch ./g fetch
and then rebase foo : git rebase origin/master (while being on the foo branch)
since the cherry pick from gerrit failed, that rebase should exibit
some conflict, with I resolve using git mergetool

then one can re-push the patch to gerrit, again using the same command
as above.. rince and repeat until the cherry pick from gerrit works

If one has commit right, then the last phase can be dealt by bringing
the patch to master locally and simply pushing to master

Norbert

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.