Reputation: 170598
I always want to have a review on top of the newest master which means that when I update the gerrit review I have to run two commands:
git rebase origin/master && git review
Is there a way to convince gerrit (review) to do it by itself?
Upvotes: 1
Views: 573
Reputation: 170598
So far I was able to overcome this by adding this alias:
alias grr='git rebase origin/master && git review'
The grr
comes from git-rebase-review ... in case it was not obvious ;)
Upvotes: 0
Reputation: 22411
You don't need to run the "git rebase" because "git review" already automatically performs the rebase before submitting the change to Gerrit. If you want to bypass the rebase execution use the -R (--no-rebase) option. To see more info about this execute "man git-review" and search for "-R".
Upvotes: 2