title: Obtain the latest refspec on a Gerrit Change
body: <p>How can I obtain the latest refspec on a gerrit change through a single command.
  I need the output as "refs/changes/11/1234/4". Is there any git command for the same</p>
  
  <p>I do know that ssh commands combined with gerrit query and a bit of scripting can obtain this, but want to know if there is any better way to do the same. Following is the ssh command I would use to get the refspec.</p>
  
  <p>ssh -p $REVIEW_SERVER_PORT $GERRIT_REVIEW_SERVER gerrit query --format=TEXT --current-patch-set $CHANGE_SHA  | grep ref.</p>
  
  <p>Similarly, I would also want to get the LATEST PATCHSET of the gerrit change</p>