Query for authors in gerrit

624 views
Skip to first unread message

David

unread,
Feb 25, 2011, 9:05:31 AM2/25/11
to Repo and Gerrit Discussion
Hi,

I wonder how you query for authors in gerrit? when I write queries I
only get owner and committer(uploader).

/D

Shawn Pearce

unread,
Feb 25, 2011, 10:08:45 AM2/25/11
to David, Repo and Gerrit Discussion
On Fri, Feb 25, 2011 at 06:05, David <davidgr...@gmail.com> wrote:
> I wonder how you query for authors in gerrit? when I write queries I
> only get owner and committer(uploader).

Its not supported. There aren't any operators to search by author.

Jonas Bang

unread,
Jun 13, 2013, 6:12:22 AM6/13/13
to repo-d...@googlegroups.com, davidgr...@gmail.com
David, the only way I found so far is to go directly to the git repo for this. Using the SHA or ref from the patch-set you can lookup "author" in the git repo.
Read more here: http://stackoverflow.com/questions/16985686/how-to-get-patchset-author-out-of-gerrit

Either you have to ssh to Gerrit and fire the git cmd, or have a local replica of the git repos to work on.

Also note that "uploader" and "committer" is not the same. And the proof is: The "uploader" include the "username" parameter which is Gerrit specific.
So actually you get neither "author" nor "committer" when using "gerrit query". But you can get both from browsing the git repo.

/Jonas
Reply all
Reply to author
Forward
0 new messages