|
Rockbox mail archiveSubject: Gerrit / git-reviewGerrit / git-review
From: Amaury Pouly via rockbox-dev <rockbox-dev_at_cool.haxx.se>
Date: Thu, 10 Sep 2015 15:49:54 +0200 Hi again, as you may be aware, with the recent version of Gerrit and following the OpenStack trend, git gained a new plugin called git-review which is used to manage patchset and can be used with gerrit. It is included in most distribution (apt-get install git-review) and is very easy ot use. However, it requires a little configuration named .gitreview which should be committed at the root of the repository with the following content: [gerrit] host=gerrit.rockbox.org port=29418 project=rockbox defaultbranch=master One committed, you can setup git-review on your local repository using: git review -s It will check everything is all-right and create a gerrit branch. You only need to do it once. Once setup is done you only need to remember a couple instruction: To fetch a review numbered 1024: git review -d 1024 And if you want a specific patchset, say 7, then it becomes: git review -d 1024,7 You can then work on it as usual, make sure to amend the commit as usual: git commit --amend Finally push the change to gerrit: gerrit review -R If you want to create a completely new change, simple run: git review I am not entirely sure how useful this tool is but some of you might find it easier to work with. References: * https://www.mediawiki.org/wiki/Gerrit/git-review * https://www.mediawiki.org/wiki/Gerrit/Advanced_usage Amaury Received on 2015-09-10 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |