From dbfdbea22e4826345e27604a19633f390600a35b Mon Sep 17 00:00:00 2001 From: Gaetan Semet Date: Fri, 1 Dec 2017 00:02:15 +0100 Subject: [PATCH] gerrit push refs/for alias --- plugins/git2/git2.plugin.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/git2/git2.plugin.zsh b/plugins/git2/git2.plugin.zsh index ef08d58e2..fe426fb63 100644 --- a/plugins/git2/git2.plugin.zsh +++ b/plugins/git2/git2.plugin.zsh @@ -387,3 +387,7 @@ function git-change-author() { export GIT_COMMITTER_EMAIL="${NEW_EMAIL}" fi' } + +# Gerrit helper +# push current change to upstream gerrit for review on the master branch +alias gPuhrfm='git push upstream HEAD:refs/for/master'