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=$
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
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"
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&
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
5 matches
Mail list logo