4 Commits

Author SHA1 Message Date
Dave Borowitz
e7d88cd8f0 git-push-review: Handle reviewers with no explicit config
This "or r" was accidentally removed in I5ad5b617.

Change-Id: If4419e204b54e619559ed2a2a25c508fc2367d35
2016-10-04 11:48:17 -04:00
Dave Borowitz
053b7a6ee0 git-push-review: Support #hashtag arguments
Change-Id: I5ad5b61720ca4854ea61390be209c7357b66d669
2016-09-22 09:21:36 +02:00
Björn Pedersen
c357cebdae tools: use python on path
Use the canonical syntax to specify the python executable to use.

Avoids a fatal error if /usr/bin/python is a too old version (< 2.7).

Change-Id: I3e8affb52be993d35c0dcf90774d962a59ef5635
2015-06-18 17:10:11 +02:00
Dave Borowitz
1b46d67a93 contrib: Add a simple tool for pushing to named reviewers
This is a sort of simplified version of git-review[1] for users like
myself who don't mind most git command line tools, and therefore don't
feel the need to switch to a full git-review workflow, but still don't
like the HEAD:refs/for/master%r=user@domain.com syntax for specifying
reviewers during a push.

Reviewer aliases can be specified in a git config file:

[reviewer]
  sop = sop@google.com

$ git push-reviewer --dry-run sop
git push origin HEAD:refs/for/master%r=sop@google.com

[1] http://www.mediawiki.org/wiki/Gerrit/git-review

Change-Id: Ib0c8d609ed9eab17b71ddb13da417a9bfd013611
2014-11-06 14:42:37 -08:00