...
Code Block |
---|
$ git clone asterisk:{repo} |
Pushing to Gerrit for Code Review
...
Install
git-review
:Code Block $ pip install git-review
To submit a change to
master
:Code Block $ git review
To submit a change for a particular branch:
Code Block $ git review {branchname}
To submit a change, including the
ASTERISK
issue:Code Block $ git review -t ASTERISK-12345
Use git push
Pushing to Gerrit for code review can always be done using standard git
commands. This is done by pushing to the refs/for/[branch]
. Generally, this will be master
, unless pushing to a particular mainline Asterisk branch.
Code Block |
---|
$ git push asterisk:{repo} HEAD:refs/for/master |
Updating a Review
Reviews are automatically updated so long as commits contain the same Change ID. If your review has any findings, rebase the commits as appropriate, making sure the Change ID is preserved:
Code Block $ git rebase -i HEAD~{num}
Re-push the changes:
Code Block $ git review
or:
Code Block $ git push asterisk:{repo} HEAD:refs/for/master
...