Feature Request: add a --current option to git branch

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Feature Request: add a --current option to git branch

From: John Jendro <hidden>
Date: 2016-06-15 22:50:38

Yes I know this can be done with sed & grep, but --current should be a
standard thing for git branch to have.

-- 

-John Jendro

Re: Feature Request: add a --current option to git branch

From: Jay Soffian <hidden>
Date: 2016-06-15 22:50:38

On Wed, Feb 23, 2011 at 2:08 PM, John Jendro [off-list ref] wrote:
Yes I know this can be done with sed & grep, but --current should be a
standard thing for git branch to have.
I sense you're looking to get the name of the currently checked out
branch, possibly for use in a script. In that case, you may want "git
rev-parse --abbrev-ref HEAD" or "git rev-parse --symbolic-full-name
HEAD" depending upon what you're trying to do.

j.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help