how to use git check gerrit patch sets

36 views
Skip to first unread message

pierre Kuo

unread,
Feb 11, 2015, 2:05:35 AM2/11/15
to repo-d...@googlegroups.com
hi all:
There is a "Diff against" select box in gerrit UI to check the difference of patch sets.
Is there any way to check patch sets difference in gerrit by git command?
appreciate your help in advance,

Alex Blewitt

unread,
Feb 11, 2015, 6:11:00 AM2/11/15
to pierre Kuo, repo-d...@googlegroups.com
The patch set ref should be shown on the screen which you can use to fetch locally and then perform the operations you are looking for. It will be something like refs/changes/34/1234/1 for patch set 1, /2 for patch set 2 etc. 

Alex 

Sent from my iPhat 6
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pierre Kuo

unread,
Feb 12, 2015, 1:40:53 PM2/12/15
to repo-d...@googlegroups.com, vich...@gmail.com
hi Alex:


The patch set ref should be shown on the screen which you can use to fetch locally and then perform the operations you are looking for. It will be something like refs/changes/34/1234/1 for patch set 1, /2 for patch set 2 etc. 

Alex 

If refs/changes/34/1234/1 for patch set1, /2 for patch2.
is there any document or naming rule for "refs/changes/34/1234" for me to learn?
does that mean there is special naming rule for gerrit remote repository when user push a patch and ammend it, right?

Sincerely thanks for your help,
 

Alex Blewitt

unread,
Feb 12, 2015, 2:39:35 PM2/12/15
to pierre Kuo, repo-d...@googlegroups.com
The number is the change number as seen when you go to Gerrit. The first two digits are  just the last two digits of the change number (ie change % 100). 

Alex
Reply all
Reply to author
Forward
0 new messages