App-GitGerrit
view release on metacpan or search on metacpan
bin/git-gerrit view on Meta::CPAN
associated with the TOPIC in its name, as created by C<git gerrit new>
above.
After a successful push, git-gerrit checks out the upstream branch and
deletes the original change-branch. The goal is to maintain a clean
namespace, containing only the change-branches that are being worked
on. When you push one to Gerrit, you don't need to keep it any longer
locally. If you need to amend it later, you'll be able to get to it
with the C<git gerrit checkout> sub-command.
=over
=item B<--keep>
This option tells git-gerrit not to checkout the upstream and not to
delete the change-branch, keeping your working area intact.
=item B<--force>
By default, git-gerrit refuses to push a change-branch unless it
contains a single commit dangling from its upstream and git status is
clean (i.e., C<git status --untracked-files=no> doesn't show any
modification that hasn't been added to the index). If either one of
these conditions don't hold it dies with an error message telling
what's the problem. If you're sure you want to push anyway, you can
use this option. If both conditions don't hold, you'll have to use the
option twice.
It's best to avoid multiple commit pushes, because if you have to
amend them later, having multiple commits may require rebasing
dependent commits, which is a more complex operation and clutters the
review history of the change.
If git status isn't clean, the the upstream isn't checked out.
=item B<--[no]rebase>
Before a brand new change-branch (one ending in a TOPIC C<name>) is
pushed, its upstream branch is updated and it is rebased on top of its
upstream. This is to make sure you're pushing a change based on the
newest project state. If, by any reason, you don't want to have it
rebased, use the C<--norebase> option.
A change-branch that has been checked out (one ending in an ID) isn't
rebased by default, because this would clutter the change review
history in Gerrit. If you want it rebased nonetheless, use the
C<--rebase> option.
If git status isn't clean or if the commit being pushed is a merge
commit it's not rebased.
=item B<--draft>
This option makes git-gerrit push the change-branch to
C<refs/drafts/UPSTREAM> instead of to C<refs/for/UPSTREAM>, creating a
draft change in Gerrit.
=item B<--submit>
This option tells Gerrit to L<auto-merge the change during
push|http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/user-upload.html#auto_merge>,
which is a feature implemented in Gerrit 2.7.
=item B<--base BASE>
This option L<selects a new merge
base|http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/user-upload.html#base>
for Gerrit, which is a feature implemented in Gerrit 2.7.
=item B<--topic TOPIC>
This option specifies another name for the topic that will be
associated with the change. By default, the topic name is the last
component of the current change-branch name, as specified by the C<git
gerrit new> sub-command.
=item B<--reviewer USERS>
This option let's you invite a list of users to review your change.
USERS is a colon-separated list of usernames. You may also pass this
option more than once, to invite more than a set of users.
=item B<--cc USERS>
This option let's you notify a list of users about your change.
USERS is a colon-separated list of usernames. You may also pass this
option more than once, to invite more than a set of users.
=back
=head2 git gerrit query [--limit LIMIT] [--verbose] [[NAME=]QUERY]*
The B<query> sub-command let's you list Gerrit changes meeting
specific criteria. The matching changes are shown in tabular format,
one change per line, listing their legacy ID, status, Code-Review
vote, time of last update, project name, branch name, owner name, and
subject line.
You may pass a list of queries. Each QUERY's results is presented
separated from the other by a empty line and a header containing the
query's name and expression inside brackets. For example:
$ git gerrit query 'Starred changes=is:starred' is:draft
[Starred changes=is:starred]
ID STATUS CR UPDATED PROJECT BRANCH OWNER SUBJECT
1186 MERGED +2 2013-09-18 helloworld master Gustavo Chaves [SB-1] Test amend 3
[QUERY=is:draft]
ID STATUS CR UPDATED PROJECT BRANCH OWNER SUBJECT
1187 NEW 2013-09-08 helloworld master Gustavo Chaves [SB-2] Make foo
Note that unnamed queries are prefixed by C<QUERY=> instead of by their names.
Each QUERY can be specified by a L<Gerrit search
expression|https://gerrit-review.googlesource.com/Documentation/user-search.html>.
=over
=item B<--limit LIMIT>
This option put a limit on the number of changes that are shown for
each QUERY.
=item B<--verbose>
( run in 1.076 second using v1.01-cache-2.11-cpan-b16cb0d3907 )