----- Original Message -----
From: "Nick Coghlan" <ncoghlan(a)redhat.com>
To: beaker-devel(a)lists.fedorahosted.org
Sent: Wednesday, June 5, 2013 2:58:53 PM
Subject: Re: [Beaker-devel] 2-c tip: BASH function for pushing patches
On 06/05/2013 02:42 PM, Amit Saha wrote:
> Besides adding the Beaker Gerrit remote in your .git/config [1], you can
> also define a BASH function such as:
>
> # git push
> function git-push(){
> git push git+ssh://gerrit.beaker-project.org:29418/beaker
> "$@":refs/for/develop;
> }
>
> And then to push a branch 908174, simply $ git-push 908174
>
> [1]
>
http://beaker-project.org/dev/guide/writing-a-patch.html#submitting-your-...
Nice. I currently just use Ctrl-R (to bring up the search prompt for my
bash command history) and then start typing "refs/for"
That will usually give me the right local branch (maybe hitting Ctrl-R
another couple of times), and if that doesn't work, then I'll usually
have a "git status" output not far above to copy and paste the branch
name from.
That sounds like me before i decided to add this. Although, I searched for few things:
'push', 'ssh', 'git' .. , whichever returned what i was looking
for :-)
-Amit.
--
Amit Saha <
http://echorand.me>
Infrastructure Engineering and Development
Red Hat, Inc.