Re: Git Feature Request - show current branch

2015-02-20 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 19.02.2015 19:10: > Michael J Gruber writes: > >> Randall S. Becker venit, vidit, dixit 19.02.2015 14:32: >>> git symbolic-ref --short HEAD >> >> That errors out when HEAD is detached. > > Isn't that what you would want to happen anyway? > > if current=$

Re: Git Feature Request - show current branch

2015-02-19 Thread Junio C Hamano
Michael J Gruber writes: > Randall S. Becker venit, vidit, dixit 19.02.2015 14:32: >> git symbolic-ref --short HEAD > > That errors out when HEAD is detached. Isn't that what you would want to happen anyway? if current=$(that command) then you know $current is ch

Re: Git Feature Request - show current branch

2015-02-19 Thread Michael J Gruber
Randall S. Becker venit, vidit, dixit 19.02.2015 14:32: > git symbolic-ref --short HEAD That errors out when HEAD is detached. git rev-parse --symbolic-full-name [--abbrev-ref] HEAD returns the branch name or HEAD. Though it's a bit difficult to discover. I guess git 3.0 will have "git branch"

RE: Git Feature Request - show current branch

2015-02-19 Thread Randall S. Becker
AM To: git@vger.kernel.org Subject: Git Feature Request - show current branch Hello, To start with, I did not find an official way to submit feature request so hopefully this is the right way to do so - if not then my apologize & appreciate if somebody could re-submit to the proper place. I&

Git Feature Request - show current branch

2015-02-19 Thread mdconf
Hello, To start with, I did not find an official way to submit feature request so hopefully this is the right way to do so - if not then my apologize & appreciate if somebody could re-submit to the proper place. I'd like to request adding a parameter to 'git branch' that would only show the cu