gerrit/gerrit-util-cli
David Ostrovsky 913cc07299 ReceiveCommits: Add support for approvals
Add -l option to magic branch to pass approvals through git push.

One use case is to support Work In Progress (WIP) Workflow backed by
WIP label. In this scenario new label is introduced with (-1,0) range
to mark a change as WIP. This change allows to optionally mark a new
patch set as WIP through `git push`.

With configuration of push macro in .git/config:
  git config remote.wip.url ssh://review.example.com:29418/project
  git config remote.wip.push HEAD:refs/for/master%l=wip-1

WIP patch set can be uploaded with:
  git push wip

Another use case is to do %l=Verified+1 if a change was compiled and
tested locally, e.g.:

  git config alias r '! buck build gerrit && buck test --all && \\
  git push gerrit-review HEAD:refs/for/master%l=Verified+1'

Then all these can be done in one step - compile, run tests and push to
review:

  git r

Change-Id: I52a67993952f32f8a04d9c0226f1c456a6f522b4
2014-05-08 17:08:44 -07:00
..
src/main/java/com/google/gerrit/util/cli ReceiveCommits: Add support for approvals 2014-05-08 17:08:44 -07:00
BUCK Save GWT compile time by avoiding javac 2013-11-30 11:06:50 -08:00