Created
October 19, 2011 17:34
-
-
Save ryanflorence/1299047 to your computer and use it in GitHub Desktop.
Open gerrit commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
open "https://gerrit.instructure.com/#q,$(git log --grep='^Change-Id: ' -1|\ | |
grep 'Change-Id: '|head -n 1|sed 's/Change-Id://'|sed 's/ //g'),n,z" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm sure a neckbeard could do this in one line of bash. I welcome the code.
Anyway, I put this in my path as just
gerrit
. So in the terminal I simply typegerrit
and it opens up in my browser.