My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1122: ssh gerrit command improvements
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by docw...@gmail.com, Sep 6, 2011
I have an idea for a git plugin that would ask Gerrit for open changes and then pull them into the repository.

The operations it would support would be:
1) Cherry-pick the latest patchset. (this should warn the user if it depends on a non-merged change)
2) Pull the latest patchset.

Optionally, it would create a new branch for the change as well.

To do this, I need:

* More information in the query.  Specifically, the git 'ref' of the latest patchset. (e.g. `refs/changes/88/1288/6`)
* Any dependencies for the latest patchset, if they aren't merged.
* Having the git-sha would be nice too.

This should be enough to generate a pretty command line tool for git to interact with Gerrit.

I think working through SSH would be the easiest, since I'll have the SSH information already in the git repository, I can just pull it out with git-config.
Sep 6, 2011
Project Member #1 nas...@codeaurora.org
The SHA and ref are there if you use --current-patch-set. Dependencies will be added by  Issue 1020 . Is there anything else you'd need?
Sep 8, 2011
#2 docw...@gmail.com
Ah, I didn't see the additional docs for query.  BTW: Can you update the docs links from 2.2.0 to 2.2.1 on the homepage?

I'll try playing with it next week...
Sign in to add a comment

Powered by Google Project Hosting