From: Michael J Gruber <git@drmicha.warpmail.net>
To: "Randall S. Becker" <rsbecker@nexbridge.com>,
mdconf@seznam.cz, git@vger.kernel.org
Subject: Re: Git Feature Request - show current branch
Date: Thu, 19 Feb 2015 17:21:05 +0100 [thread overview]
Message-ID: <54E60D71.6050906@drmicha.warpmail.net> (raw)
In-Reply-To: <001801d04c48$732f9980$598ecc80$@nexbridge.com>
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" and "git branches" :)
Michael
next prev parent reply other threads:[~2015-02-19 16:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-19 13:14 Git Feature Request - show current branch mdconf
2015-02-19 13:32 ` Randall S. Becker
2015-02-19 16:21 ` Michael J Gruber [this message]
2015-02-19 18:10 ` Junio C Hamano
2015-02-20 10:16 ` Michael J Gruber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54E60D71.6050906@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=mdconf@seznam.cz \
--cc=rsbecker@nexbridge.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.